From 7fe01df0d65500b74f482eefcea77564a2fa2594 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Fri, 7 May 2021 17:00:54 +0200 Subject: [PATCH] idmapped-mounts: remove unused set_cloexec() helper This function has never been used so remove it. Cc: fstests@vger.kernel.org Signed-off-by: Christian Brauner Reviewed-by: Eryu Guan Signed-off-by: Eryu Guan --- src/idmapped-mounts/idmapped-mounts.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/idmapped-mounts/idmapped-mounts.c b/src/idmapped-mounts/idmapped-mounts.c index 30f8f6e0..35b38f85 100644 --- a/src/idmapped-mounts/idmapped-mounts.c +++ b/src/idmapped-mounts/idmapped-mounts.c @@ -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)) -- 2.30.2