From 9a4128f32978c71dd417d9ce5fa4677f00dd4683 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 23 Mar 2015 13:09:48 -0500 Subject: Trivial runcon cleanups. --- toys/pending/runcon.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'toys/pending/runcon.c') diff --git a/toys/pending/runcon.c b/toys/pending/runcon.c index bf13442e..b916b424 100644 --- a/toys/pending/runcon.c +++ b/toys/pending/runcon.c @@ -21,9 +21,7 @@ void runcon_main(void) { char *context = *toys.optargs; - if (setexeccon(context)) - error_exit("Could not set context to %s: %s", context, strerror(errno)); + if (setexeccon(context)) perror_exit("Could not set context to %s", context); - toys.optargs++; - xexec(toys.optargs); + xexec(++toys.optargs); } -- cgit v1.2.3