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:
parent
c305c32580
commit
a87f0f726c
@ -170,7 +170,7 @@ static int swap_list_get(MountPoint **head) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (endswith(dev, "(deleted)")) {
|
||||
if (endswith(dev, " (deleted)")) {
|
||||
free(dev);
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user