diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-03-16 22:30:00 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-03-16 22:30:00 +0100 |
commit | d72238fcb34abc81aca97c5fb15888708ee937d3 (patch) | |
tree | 77d69b11ef0efed21238b049edb40eb6d921c09f /src/umount.c | |
parent | f1f8cfd0a2654069cb3f792556320d8e214fd930 (diff) |
umount: make sure skip_ro is always correctly initialized
Diffstat (limited to 'src/umount.c')
-rw-r--r-- | src/umount.c | 4 |
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); |