mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
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 <christian.brauner@ubuntu.com> Reviewed-by: Eryu Guan <guaneryu@gmail.com> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
committed by
Eryu Guan
parent
8a9bc45111
commit
7fe01df0d6
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user