From df3c5314d2421da286fca412ae072795f0979bae Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Wed, 14 Feb 2018 00:19:42 +0100 Subject: [PATCH] start: s/||/&&/ when mapping ids Signed-off-by: Christian Brauner --- src/lxc/start.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/start.c b/src/lxc/start.c index f9befb827..b90d5ea00 100644 --- a/src/lxc/start.c +++ b/src/lxc/start.c @@ -1559,7 +1559,7 @@ static int lxc_spawn(struct lxc_handler *handler) * again. */ if (wants_to_map_ids) { - if (!handler->conf->ns_share[LXC_NS_USER] || + if (!handler->conf->ns_share[LXC_NS_USER] && (handler->conf->ns_keep & CLONE_NEWUSER) == 0) { ret = lxc_map_ids(id_map, handler->pid); if (ret < 0) {