summaryrefslogtreecommitdiffstats
path: root/daemon/link.c
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/link.c')
-rw-r--r--daemon/link.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/link.c b/daemon/link.c
index a8162a29..c4cdfe1d 100644
--- a/daemon/link.c
+++ b/daemon/link.c
@@ -63,7 +63,7 @@ do_readlinklist (const char *path, char *const *names)
DECLARE_STRINGSBUF (ret);
CHROOT_IN;
- fd_cwd = open (path, O_RDONLY | O_DIRECTORY);
+ fd_cwd = open (path, O_RDONLY|O_DIRECTORY|O_CLOEXEC);
CHROOT_OUT;
if (fd_cwd == -1) {