aboutsummaryrefslogtreecommitdiff
path: root/toys/pending
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2015-03-23 13:09:48 -0500
committerRob Landley <rob@landley.net>2015-03-23 13:09:48 -0500
commit9a4128f32978c71dd417d9ce5fa4677f00dd4683 (patch)
tree4ec5e376e5c3810948f64f7bcb8d1fd6781d4ace /toys/pending
parentfd1ff92b160b500a0a443bcdbd86a6e1709e9495 (diff)
downloadtoybox-9a4128f32978c71dd417d9ce5fa4677f00dd4683.tar.gz
Trivial runcon cleanups.
Diffstat (limited to 'toys/pending')
-rw-r--r--toys/pending/runcon.c6
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);
}