[systemd-commits] src/umount.c

Lennart Poettering lennart at kemper.freedesktop.org
Wed Mar 16 14:30:09 PDT 2011


 src/umount.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit d72238fcb34abc81aca97c5fb15888708ee937d3
Author: Lennart Poettering <lennart at poettering.net>
Date:   Wed Mar 16 22:30:00 2011 +0100

    umount: make sure skip_ro is always correctly initialized

diff --git a/src/umount.c b/src/umount.c
index 96ce61d..3d328e0 100644
--- a/src/umount.c
+++ b/src/umount.c
@@ -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);



More information about the systemd-commits mailing list