From: Jan Engelhardt Date: Sun, 16 Feb 2014 12:58:18 +0000 (+0100) Subject: core: more exact test on the procfs special string "(deleted)" X-Git-Tag: v209~89 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=a87f0f726ca6dc9fde11eea6591a244e77d2d182;ds=inline 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. --- diff --git a/src/core/umount.c b/src/core/umount.c index 30111bea8..2d166c1c9 100644 --- a/src/core/umount.c +++ b/src/core/umount.c @@ -170,7 +170,7 @@ static int swap_list_get(MountPoint **head) { continue; } - if (endswith(dev, "(deleted)")) { + if (endswith(dev, " (deleted)")) { free(dev); continue; }