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.

(cherry picked from commit a87f0f726c)
This commit is contained in:
Jan Engelhardt
2014-03-05 00:26:48 -05:00
committed by Zbigniew Jędrzejewski-Szmek
parent 39899c8662
commit 878ca1ee66
+1 -1
View File
@@ -170,7 +170,7 @@ static int swap_list_get(MountPoint **head) {
continue;
}
if (endswith(dev, "(deleted)")) {
if (endswith(dev, " (deleted)")) {
free(dev);
continue;
}