From d72238fcb34abc81aca97c5fb15888708ee937d3 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 16 Mar 2011 22:30:00 +0100 Subject: [PATCH] umount: make sure skip_ro is always correctly initialized --- src/umount.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/umount.c b/src/umount.c index 96ce61da..3d328e0d 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); -- 2.39.5