diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-12-08 19:36:46 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-12-20 20:00:09 +0100 |
commit | 9ffcff0e0a3ede3f4c227327cb1a96a436386f4f (patch) | |
tree | a49f048dd1cd8ef4d7a93b184943aae154755be1 /src/shared | |
parent | 08cea7dfc0aee044c35f234579a9f4fa8edcace5 (diff) |
tree-wide: always invoke setmntent() with "re" mode
Let's make sure O_CLOEXEC is set for the file descriptor.
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/fstab-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/fstab-util.c b/src/shared/fstab-util.c index f0bfb30bb5..87b520b540 100644 --- a/src/shared/fstab-util.c +++ b/src/shared/fstab-util.c @@ -38,7 +38,7 @@ bool fstab_is_mount_point(const char *mount) { _cleanup_endmntent_ FILE *f = NULL; struct mntent *m; - f = setmntent("/etc/fstab", "r"); + f = setmntent("/etc/fstab", "re"); if (!f) return false; |