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: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d72238fcb34abc81aca97c5fb15888708ee937d3;p=systemd umount: make sure skip_ro is always correctly initialized --- 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);