Skip to content

Commit a87f0f7

Browse files
jengelhkeszybz
authored andcommitted
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.
1 parent c305c32 commit a87f0f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/umount.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ static int swap_list_get(MountPoint **head) {
170170
continue;
171171
}
172172

173-
if (endswith(dev, "(deleted)")) {
173+
if (endswith(dev, " (deleted)")) {
174174
free(dev);
175175
continue;
176176
}

0 commit comments

Comments
 (0)