From: 2xsec Date: Tue, 3 Jul 2018 09:22:48 +0000 (+0900) Subject: tests: clenaup may_control.c X-Git-Tag: lxc-3.1.0~221^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe142896b622ceb4e4bdec834cb793e1d1ee07d6;p=thirdparty%2Flxc.git tests: clenaup may_control.c Signed-off-by: 2xsec --- diff --git a/src/tests/may_control.c b/src/tests/may_control.c index bb7000caa..2930deb2a 100644 --- a/src/tests/may_control.c +++ b/src/tests/may_control.c @@ -35,12 +35,16 @@ int main(int argc, char *argv[]) if (argc < 2) usage(argv[0]); + name = argv[1]; + if (argc == 3) lxcpath = argv[2]; + c = lxc_container_new(name, lxcpath); if (c) may = c->may_control(c); + printf("You may%s control %s\n", may ? "" : " not", name); exit(may ? 0 : 1); }