idmapped-mounts: remove unused set_cloexec() helper
[xfstests-dev.git] / src / idmapped-mounts / idmapped-mounts.c
index 30f8f6e045afa263aba94866d1762e1c3111e92f..35b38f8509459e9f520d477bac66d443e31d4586 100644 (file)
@@ -369,11 +369,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))