mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-04 04:31:27 +00: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.
(cherry picked from commit a87f0f726c)
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
39899c8662
commit
878ca1ee66
+1
-1
@@ -170,7 +170,7 @@ static int swap_list_get(MountPoint **head) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (endswith(dev, "(deleted)")) {
|
||||
if (endswith(dev, " (deleted)")) {
|
||||
free(dev);
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user