X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=src%2Flxc%2Fattach.c;h=951d3bb936b54631786201072cc8f465e8181b56;hb=8af07f821c38224beac5f6d3e4970082c6732fc6;hp=8387bbfe174a38b5537eaebaabd17312c9937f2e;hpb=964581c210d456eea40362c31d293c25e1ea67a4;p=mirror_lxc.git diff --git a/src/lxc/attach.c b/src/lxc/attach.c index 8387bbfe1..951d3bb93 100644 --- a/src/lxc/attach.c +++ b/src/lxc/attach.c @@ -859,8 +859,7 @@ static int attach_child_main(struct attach_clone_payload *payload) goto on_error; } - ret = lxc_setgroups(0, NULL); - if (ret < 0 && errno != EPERM) + if (!lxc_setgroups(0, NULL) && errno != EPERM) goto on_error; /* Set {u,g}id. */