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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user