summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@inai.de>2014-02-16 13:58:18 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-02-17 19:03:07 -0500
commita87f0f726ca6dc9fde11eea6591a244e77d2d182 (patch)
tree1c2e202bbaddce9cfa4b933ba42b793ad35c32e6 /src/core
parentc305c32580a1d7689a401e8cf673ec7936c12bbe (diff)
core: more exact test on the procfs special string "(deleted)"
In other parts of systemd, the code checks for " (deleted)", but in one instance, it did not (yet). Make it do the same.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/umount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/umount.c b/src/core/umount.c
index 30111bea80..2d166c1c92 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;
}