674ca7d
From e84fca4ab69cab12a6fed7f7fde017de5b8608b1 Mon Sep 17 00:00:00 2001
674ca7d
From: Jan Engelhardt <jengelh@inai.de>
674ca7d
Date: Sun, 16 Feb 2014 13:58:18 +0100
674ca7d
Subject: [PATCH] core: more exact test on the procfs special string
674ca7d
 "(deleted)"
674ca7d
674ca7d
In other parts of systemd, the code checks for " (deleted)",
674ca7d
but in one instance, it did not (yet). Make it do the same.
674ca7d
674ca7d
(cherry picked from commit a87f0f726ca6dc9fde11eea6591a244e77d2d182)
674ca7d
(cherry picked from commit 878ca1ee66efe252c3dee848ef874ca6a6f78f5b)
674ca7d
---
674ca7d
 src/core/umount.c | 2 +-
674ca7d
 1 file changed, 1 insertion(+), 1 deletion(-)
674ca7d
674ca7d
diff --git a/src/core/umount.c b/src/core/umount.c
674ca7d
index 1e95ad70dd..9327964994 100644
674ca7d
--- a/src/core/umount.c
674ca7d
+++ b/src/core/umount.c
674ca7d
@@ -169,7 +169,7 @@ static int swap_list_get(MountPoint **head) {
674ca7d
                         continue;
674ca7d
                 }
674ca7d
 
674ca7d
-                if (endswith(dev, "(deleted)")) {
674ca7d
+                if (endswith(dev, " (deleted)")) {
674ca7d
                         free(dev);
674ca7d
                         continue;
674ca7d
                 }