diff options
author | Rob Landley <rob@landley.net> | 2015-03-23 13:09:48 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2015-03-23 13:09:48 -0500 |
commit | 9a4128f32978c71dd417d9ce5fa4677f00dd4683 (patch) | |
tree | 4ec5e376e5c3810948f64f7bcb8d1fd6781d4ace /toys/pending | |
parent | fd1ff92b160b500a0a443bcdbd86a6e1709e9495 (diff) | |
download | toybox-9a4128f32978c71dd417d9ce5fa4677f00dd4683.tar.gz |
Trivial runcon cleanups.
Diffstat (limited to 'toys/pending')
-rw-r--r-- | toys/pending/runcon.c | 6 |
1 files changed, 2 insertions, 4 deletions
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); } |