commit | 9a4128f32978c71dd417d9ce5fa4677f00dd4683 | [log] [tgz] |
---|---|---|
author | Rob Landley <rob@landley.net> | Mon Mar 23 13:09:48 2015 -0500 |
committer | Rob Landley <rob@landley.net> | Mon Mar 23 13:09:48 2015 -0500 |
tree | 4ec5e376e5c3810948f64f7bcb8d1fd6781d4ace | |
parent | fd1ff92b160b500a0a443bcdbd86a6e1709e9495 [diff] |
Trivial runcon cleanups.
diff --git a/toys/pending/runcon.c b/toys/pending/runcon.c index bf13442..b916b42 100644 --- a/toys/pending/runcon.c +++ b/toys/pending/runcon.c
@@ -21,9 +21,7 @@ { 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); }