tree-wide: always invoke setmntent() with "re" mode

Let's make sure O_CLOEXEC is set for the file descriptor.
This commit is contained in:
Lennart Poettering
2016-12-20 20:00:09 +01:00
parent 08cea7dfc0
commit 9ffcff0e0a
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -310,7 +310,7 @@ static char *disk_mount_point(const char *label) {
if (asprintf(&device, "/dev/mapper/%s", label) < 0)
return NULL;
f = setmntent("/etc/fstab", "r");
f = setmntent("/etc/fstab", "re");
if (!f)
return NULL;