umount: make sure skip_ro is always correctly initialized

This commit is contained in:
Lennart Poettering
2011-03-16 22:30:00 +01:00
parent f1f8cfd0a2
commit d72238fcb3
+1 -3
View File
@@ -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);