summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/umount.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/umount.c b/src/umount.c
index 96ce61da8b..3d328e0da9 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);