mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-04 12:41:39 +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 commita87f0f726c) (cherry picked from commit878ca1ee66)
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
6b63b4383a
commit
e84fca4ab6
+1
-1
@@ -169,7 +169,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