chiark / gitweb /
core: more exact test on the procfs special string "(deleted)"
authorJan Engelhardt <jengelh@inai.de>
Sun, 16 Feb 2014 12:58:18 +0000 (13:58 +0100)
committerZbigniew 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

index 30111be..2d166c1 100644 (file)
@@ -170,7 +170,7 @@ static int swap_list_get(MountPoint **head) {
                         continue;
                 }
 
-                if (endswith(dev, "(deleted)")) {
+                if (endswith(dev, " (deleted)")) {
                         free(dev);
                         continue;
                 }