Message ID | 20210507150100.968659-2-brauner@kernel.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | idmapped mounts: extend testsuite and fixes | expand |
diff --git a/src/idmapped-mounts/idmapped-mounts.c b/src/idmapped-mounts/idmapped-mounts.c index 870a8fe7..66bdd817 100644 --- a/src/idmapped-mounts/idmapped-mounts.c +++ b/src/idmapped-mounts/idmapped-mounts.c @@ -371,11 +371,6 @@ static bool is_sticky(int dfd, const char *path, int flags) return (st.st_mode & S_ISVTX) > 0; } -static inline int set_cloexec(int fd) -{ - return fcntl(fd, F_SETFD, FD_CLOEXEC); -} - static inline bool switch_fsids(uid_t fsuid, gid_t fsgid) { if (setfsgid(fsgid))