1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

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.
This commit is contained in:
Jan Engelhardt 2014-02-16 13:58:18 +01:00 committed by Zbigniew Jędrzejewski-Szmek
parent c305c32580
commit a87f0f726c

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;
}