X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fumount.c;h=3d328e0da955ecf855564b1067e5310d6afe9f1a;hb=88bb8d215aa0f5576eb3f9c77c30cdc4b17783fe;hp=96ce61da8b1c7d8362b00df10889a0451a241e33;hpb=f3accc08d36c3937f6bc2e696679610dd36fbfaf;p=elogind.git 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);