projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f871aee
)
util:bind_remount_recursive(): handle return 0 of set_consume()
author
Harald Hoyer
<harald@redhat.com>
Tue, 9 Jun 2015 08:32:28 +0000
(10:32 +0200)
committer
Harald Hoyer
<harald@redhat.com>
Tue, 9 Jun 2015 08:32:28 +0000
(10:32 +0200)
set_consume() does not return -EEXIST, but 0, in case the key is already
in the Set.
src/shared/util.c
patch
|
blob
|
history
diff --git
a/src/shared/util.c
b/src/shared/util.c
index 311acbb3499384c5d28df4a9ee5a7b13a049e7db..dc5e938796305dd06b6251cbaa8f1728694367bf 100644
(file)
--- 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;