chiark / gitweb /
umount: make sure skip_ro is always correctly initialized
authorLennart Poettering <lennart@poettering.net>
Wed, 16 Mar 2011 21:30:00 +0000 (22:30 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 16 Mar 2011 21:30:00 +0000 (22:30 +0100)
src/umount.c

index 96ce61d..3d328e0 100644 (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);