mirror of
https://github.com/systemd/systemd.git
synced 2025-01-12 13:18:14 +03:00
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.
This commit is contained in:
parent
f871aeed8b
commit
85d834ae8e
Notes:
Lennart Poettering
2015-06-18 00:01:19 +02:00
Backport: bugfix
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user