]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
util:bind_remount_recursive(): handle return 0 of set_consume() 118/head
authorHarald Hoyer <harald@redhat.com>
Tue, 9 Jun 2015 08:32:28 +0000 (10:32 +0200)
committerHarald 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

index 311acbb3499384c5d28df4a9ee5a7b13a049e7db..dc5e938796305dd06b6251cbaa8f1728694367bf 100644 (file)
@@ -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;