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 30111bea80d2bb18039cf3c05a58381302fb3be0..2d166c1c92c967a69f6d060b3b8c5c8bc15faf67 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;
                 }