| 132 | |
| 133 | #define ce_permissions(mode) (((mode) & 0100) ? 0755 : 0644) |
| 134 | static inline unsigned int create_ce_mode(unsigned int mode) |
| 135 | { |
| 136 | if (S_ISLNK(mode)) |
| 137 | return S_IFLNK; |
| 138 | if (S_ISSPARSEDIR(mode)) |
| 139 | return S_IFDIR; |
| 140 | if (S_ISDIR(mode) || S_ISGITLINK(mode)) |
| 141 | return S_IFGITLINK; |
| 142 | return S_IFREG | ce_permissions(mode); |
| 143 | } |
| 144 | |
| 145 | static inline unsigned int canon_mode(unsigned int mode) |
| 146 | { |
no outgoing calls
no test coverage detected