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)
(cherry picked from commit 878ca1ee66)
This commit is contained in:
Jan Engelhardt
2014-07-22 23:03:33 -04:00
committed by Zbigniew Jędrzejewski-Szmek
parent 6b63b4383a
commit e84fca4ab6
+1 -1
View File
@@ -169,7 +169,7 @@ static int swap_list_get(MountPoint **head) {
continue;
}
if (endswith(dev, "(deleted)")) {
if (endswith(dev, " (deleted)")) {
free(dev);
continue;
}