]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
start: s/||/&&/ when mapping ids 2163/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 13 Feb 2018 23:19:42 +0000 (00:19 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 13 Feb 2018 23:19:42 +0000 (00:19 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/start.c

index f9befb827e87d87f0ec493c91cabb5fe533b8f8b..b90d5ea00a063a1f435e15a2e4863e225efcf0fd 100644 (file)
@@ -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) {