From: Lennart Poettering Date: Wed, 16 Mar 2011 21:30:00 +0000 (+0100) Subject: umount: make sure skip_ro is always correctly initialized X-Git-Tag: v21~62 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=d72238fcb34abc81aca97c5fb15888708ee937d3;p=elogind.git umount: make sure skip_ro is always correctly initialized --- diff --git a/src/umount.c b/src/umount.c index 96ce61da8..3d328e0da 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);