start: s/||/&&/ when mapping ids

parent 6efacf80
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment