mirror of
https://github.com/ostreedev/ostree.git
synced 2025-01-26 14:04:12 +03:00
mount-util: Add missing O_CLOEXEC
Seen in review.
This commit is contained in:
parent
b6c054e1fa
commit
1f9607a8e9
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user