diff options
author | Colin Walters <walters@verbum.org> | 2017-05-16 12:42:45 -0400 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2017-05-16 17:34:46 +0000 |
commit | 90cd7f72344fc84da9d1f73189bdeebdcc4596aa (patch) | |
tree | e2fc1c6f8c807b28205d80e3a8db68d6237d2497 /src/libostree/ostree-impl-system-generator.c | |
parent | 30705889cb867c18cdb7fed8e55dc46477c069fa (diff) | |
download | ostree-90cd7f72344fc84da9d1f73189bdeebdcc4596aa.tar.gz |
tree-wide: Add a few missing O_CLOEXEC
I noticed an instance of this while working on https://github.com/ostreedev/ostree/pull/861
Which apparently I cargo-culted into the new system generator bits.
Let's break this out as a small concise change.
Closes: #866
Approved by: jlebon
Diffstat (limited to 'src/libostree/ostree-impl-system-generator.c')
-rw-r--r-- | src/libostree/ostree-impl-system-generator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libostree/ostree-impl-system-generator.c b/src/libostree/ostree-impl-system-generator.c index 7c4d49df..60df145a 100644 --- a/src/libostree/ostree-impl-system-generator.c +++ b/src/libostree/ostree-impl-system-generator.c @@ -174,7 +174,7 @@ _ostree_impl_system_generator (const char *ostree_cmdline, glnx_fd_close int tmpfd = -1; g_autofree char *tmppath = NULL; - if (!glnx_open_tmpfile_linkable_at (normal_dir_dfd, ".", O_WRONLY, + if (!glnx_open_tmpfile_linkable_at (normal_dir_dfd, ".", O_WRONLY | O_CLOEXEC, &tmpfd, &tmppath, error)) return FALSE; g_autoptr(GOutputStream) outstream = g_unix_output_stream_new (tmpfd, FALSE); |