mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-03 13:47:04 +03:00
umount: make sure skip_ro is always correctly initialized
This commit is contained in:
parent
f1f8cfd0a2
commit
d72238fcb3
@ -103,9 +103,7 @@ static int mount_points_list_get(MountPoint **head) {
|
||||
|
||||
/* If we encounter a bind mount, don't try to remount
|
||||
* the source dir too early */
|
||||
if (!streq(root, "/"))
|
||||
skip_ro = true;
|
||||
|
||||
skip_ro = !streq(root, "/");
|
||||
free(root);
|
||||
|
||||
p = cunescape(path);
|
||||
|
Loading…
x
Reference in New Issue
Block a user