From c4b9dc3bddb799b7acc06f1e9cb2d32e84808a85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=2E=C3=87a=C4=9Flar=20Onur?= Date: Mon, 20 Jan 2014 23:43:35 -0500 Subject: [PATCH] remove no-longer neeeded check from lxcapi_attach_run_waitl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/lxc/lxccontainer.c | 5 ----- 1 file changed, 5 deletions(-) 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);