chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f1f8cfd
)
umount: make sure skip_ro is always correctly initialized
author
Lennart Poettering
<lennart@poettering.net>
Wed, 16 Mar 2011 21:30:00 +0000
(22:30 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 16 Mar 2011 21:30:00 +0000
(22:30 +0100)
src/umount.c
patch
|
blob
|
history
diff --git
a/src/umount.c
b/src/umount.c
index 96ce61da8b1c7d8362b00df10889a0451a241e33..3d328e0da955ecf855564b1067e5310d6afe9f1a 100644
(file)
--- 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 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);
free(root);
p = cunescape(path);