From: S.Çağlar Onur Date: Tue, 21 Jan 2014 04:43:35 +0000 (-0500) Subject: remove no-longer neeeded check from lxcapi_attach_run_waitl X-Git-Tag: lxc-1.0.0.beta3~75 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4b9dc3bddb799b7acc06f1e9cb2d32e84808a85;p=thirdparty%2Flxc.git remove no-longer neeeded check from lxcapi_attach_run_waitl commit f4364484454c754ed905bfb85bd2727a0a5d0475 introduced attach functionality to unprivileged containers so remove this check like the rest of the attach functions. Signed-off-by: S.Çağlar Onur Acked-by: Stéphane Graber --- diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c index 38cf24e97..794d27812 100644 --- a/src/lxc/lxccontainer.c +++ b/src/lxc/lxccontainer.c @@ -3037,11 +3037,6 @@ static int lxcapi_attach_run_waitl(struct lxc_container *c, lxc_attach_options_t if (!c) return -1; - if (am_unpriv()) { - ERROR(NOT_SUPPORTED_ERROR, __FUNCTION__); - return -1; - } - va_start(ap, arg); argv = lxc_va_arg_list_to_argv_const(ap, 1); va_end(ap);