projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6c054e
)
mount-util: Add missing O_CLOEXEC
author
Colin Walters
<walters@verbum.org>
Fri, 2 Jun 2023 13:28:19 +0000
(09:28 -0400)
committer
Colin Walters
<walters@verbum.org>
Fri, 2 Jun 2023 13:28:19 +0000
(09:28 -0400)
Seen in review.
src/switchroot/ostree-mount-util.h
patch
|
blob
|
history
diff --git
a/src/switchroot/ostree-mount-util.h
b/src/switchroot/ostree-mount-util.h
index fdf1a434768d490425ba2b078303141e07e03cda..9f90dc01c7b72012969da1bfd5ed37124c8f82f4 100644
(file)
--- a/
src/switchroot/ostree-mount-util.h
+++ b/
src/switchroot/ostree-mount-util.h
@@
-134,7
+134,7
@@
read_file (const char *path, size_t *out_len)
{
int fd;
- fd = open (path, O_RDONLY);
+ fd = open (path, O_RDONLY
| O_CLOEXEC
);
if (fd < 0)
{
if (errno == ENOENT)