[systemd-devel] [PATCH 01/10] core: more exact test on the procfs special string "(deleted)"
Jan Engelhardt
jengelh at inai.de
Mon Feb 17 07:29:27 PST 2014
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/core/umount.c b/src/core/umount.c
index 30111be..2d166c1 100644
--- 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;
}
--
1.8.4.5
More information about the systemd-devel
mailing list