summaryrefslogtreecommitdiffstats
path: root/daemon/hexdump.c
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/hexdump.c')
-rw-r--r--daemon/hexdump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/hexdump.c b/daemon/hexdump.c
index 36986135..7fa5fbd8 100644
--- a/daemon/hexdump.c
+++ b/daemon/hexdump.c
@@ -34,7 +34,7 @@ do_hexdump (const char *path)
char *out, *err;
CHROOT_IN;
- fd = open (path, O_RDONLY);
+ fd = open (path, O_RDONLY|O_CLOEXEC);
CHROOT_OUT;
if (fd == -1) {