You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1013 B
28 lines
1013 B
From 32efad544d53f7c1745eb36eef0df95ef96d1c15 Mon Sep 17 00:00:00 2001 |
|
From: Harald Hoyer <harald@redhat.com> |
|
Date: Tue, 9 Jun 2015 10:32:28 +0200 |
|
Subject: [PATCH] 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. |
|
|
|
Cherry-picked from: 85d834ae8e7d9e2c28ef8c1388e2913ed8fd0e3b |
|
Resolves: #1433687 |
|
--- |
|
src/shared/util.c | 2 +- |
|
1 file changed, 1 insertion(+), 1 deletion(-) |
|
|
|
diff --git a/src/shared/util.c b/src/shared/util.c |
|
index 3e13cc1fd..cadaddee3 100644 |
|
--- a/src/shared/util.c |
|
+++ b/src/shared/util.c |
|
@@ -7327,7 +7327,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;
|
|
|