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