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:
c305c32
)
core: more exact test on the procfs special string "(deleted)"
author
Jan Engelhardt
<jengelh@inai.de>
Sun, 16 Feb 2014 12:58:18 +0000
(13:58 +0100)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Tue, 18 Feb 2014 00:03:07 +0000
(19:03 -0500)
In other parts of systemd, the code checks for " (deleted)",
but in one instance, it did not (yet). Make it do the same.
src/core/umount.c
patch
|
blob
|
history
diff --git
a/src/core/umount.c
b/src/core/umount.c
index 30111bea80d2bb18039cf3c05a58381302fb3be0..2d166c1c92c967a69f6d060b3b8c5c8bc15faf67 100644
(file)
--- a/
src/core/umount.c
+++ b/
src/core/umount.c
@@
-170,7
+170,7
@@
static int swap_list_get(MountPoint **head) {
continue;
}
- if (endswith(dev, "(deleted)")) {
+ if (endswith(dev, "
(deleted)")) {
free(dev);
continue;
}