diff options
Diffstat (limited to 'daemon/stat.c')
-rw-r--r-- | daemon/stat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/stat.c b/daemon/stat.c index 22592bb2..f0055518 100644 --- a/daemon/stat.c +++ b/daemon/stat.c @@ -147,7 +147,7 @@ do_lstatlist (const char *path, char *const *names) } CHROOT_IN; - path_fd = open (path, O_RDONLY | O_DIRECTORY); + path_fd = open (path, O_RDONLY|O_DIRECTORY|O_CLOEXEC); CHROOT_OUT; if (path_fd == -1) { |