From a87f0f726ca6dc9fde11eea6591a244e77d2d182 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sun, 16 Feb 2014 13:58:18 +0100 Subject: [PATCH] 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. --- src/core/umount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.30.2