summaryrefslogtreecommitdiff
path: root/src/remount-fs
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-12-08 19:36:46 +0100
committerLennart Poettering <lennart@poettering.net>2016-12-20 20:00:09 +0100
commit9ffcff0e0a3ede3f4c227327cb1a96a436386f4f (patch)
treea49f048dd1cd8ef4d7a93b184943aae154755be1 /src/remount-fs
parent08cea7dfc0aee044c35f234579a9f4fa8edcace5 (diff)
downloadsystemd-9ffcff0e0a3ede3f4c227327cb1a96a436386f4f.tar.gz
tree-wide: always invoke setmntent() with "re" mode
Let's make sure O_CLOEXEC is set for the file descriptor.
Diffstat (limited to 'src/remount-fs')
-rw-r--r--src/remount-fs/remount-fs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/remount-fs/remount-fs.c b/src/remount-fs/remount-fs.c
index c3bdcaf1da..0cb9bd9261 100644
--- a/src/remount-fs/remount-fs.c
+++ b/src/remount-fs/remount-fs.c
@@ -56,7 +56,7 @@ int main(int argc, char *argv[]) {
umask(0022);
- f = setmntent("/etc/fstab", "r");
+ f = setmntent("/etc/fstab", "re");
if (!f) {
if (errno == ENOENT) {
r = 0;