[lxc-devel] [PATCH] Fix typo to checking newgidmap existing

KATOH Yasufumi karma at jazz.email.ne.jp
Thu Mar 13 08:58:43 UTC 2014


Signed-off-by: KATOH Yasufumi <karma at jazz.email.ne.jp>
---
 src/lxc/conf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lxc/conf.c b/src/lxc/conf.c
index 4346585..94364ab 100644
--- a/src/lxc/conf.c
+++ b/src/lxc/conf.c
@@ -3212,7 +3212,7 @@ int lxc_map_ids(struct lxc_list *idmap, pid_t pid)
 	int ret = 0;
 	enum idtype type;
 	char *buf = NULL, *pos;
-	int use_shadow = (on_path("newuidmap") && on_path("newuidmap"));
+	int use_shadow = (on_path("newuidmap") && on_path("newgidmap"));
 
 	if (!use_shadow && geteuid()) {
 		ERROR("Missing newuidmap/newgidmap");
-- 
1.9.0



More information about the lxc-devel mailing list