|
Zbigniew Jędrzejewski-Szmek |
436654 |
From 6b63caf7d6bdded413985906276d023cfb623905 Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
From: Harald Hoyer <harald@redhat.com>
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
Date: Tue, 9 Jun 2015 10:32:28 +0200
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
Subject: [PATCH] util:bind_remount_recursive(): handle return 0 of
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
set_consume()
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
set_consume() does not return -EEXIST, but 0, in case the key is already
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
in the Set.
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
(cherry picked from commit 85d834ae8e7d9e2c28ef8c1388e2913ed8fd0e3b)
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
src/shared/util.c | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
diff --git a/src/shared/util.c b/src/shared/util.c
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
index 57782ba687..26eec38ea6 100644
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
--- a/src/shared/util.c
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
+++ b/src/shared/util.c
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
@@ -5135,7 +5135,7 @@ int bind_remount_recursive(const char *prefix, bool ro) {
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
while ((x = set_steal_first(todo))) {
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
r = set_consume(done, x);
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
- if (r == -EEXIST)
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
+ if (r == -EEXIST || r == 0)
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
continue;
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
if (r < 0)
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
return r;
|