summaryrefslogtreecommitdiff
path: root/src/shared/util.c
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2015-06-09 10:32:28 +0200
committerHarald Hoyer <harald@redhat.com>2015-06-09 10:32:28 +0200
commit85d834ae8e7d9e2c28ef8c1388e2913ed8fd0e3b (patch)
tree2ff0d91738f9209f7094bee90a2897acf76422a7 /src/shared/util.c
parentf871aeed8bc45158f9e63d06153a236eb9376fd7 (diff)
util:bind_remount_recursive(): handle return 0 of set_consume()
set_consume() does not return -EEXIST, but 0, in case the key is already in the Set.
Diffstat (limited to 'src/shared/util.c')
-rw-r--r--src/shared/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/util.c b/src/shared/util.c
index 311acbb349..dc5e938796 100644
--- a/src/shared/util.c
+++ b/src/shared/util.c
@@ -4932,7 +4932,7 @@ int bind_remount_recursive(const char *prefix, bool ro) {
while ((x = set_steal_first(todo))) {
r = set_consume(done, x);
- if (r == -EEXIST)
+ if (r == -EEXIST || r == 0)
continue;
if (r < 0)
return r;