summaryrefslogtreecommitdiffstats
path: root/src/inspect.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/inspect.c')
-rw-r--r--src/inspect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inspect.c b/src/inspect.c
index 9672aff8..60c7dd44 100644
--- a/src/inspect.c
+++ b/src/inspect.c
@@ -762,7 +762,7 @@ guestfs___download_to_tmp (guestfs_h *g, struct inspect_fs *fs,
goto error;
}
- fd = open (r, O_WRONLY|O_CREAT|O_TRUNC|O_NOCTTY, 0600);
+ fd = open (r, O_WRONLY|O_CREAT|O_TRUNC|O_NOCTTY|O_CLOEXEC, 0600);
if (fd == -1) {
perrorf (g, "open: %s", r);
goto error;