Mercurial > hg > toybox
changeset 1752:2d51d89b9d79 draft
Trivial runcon cleanups.
author | Rob Landley <rob@landley.net> |
---|---|
date | Mon, 23 Mar 2015 13:09:48 -0500 |
parents | cba1817972b8 |
children | 0f940c4f9658 |
files | toys/pending/runcon.c |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/toys/pending/runcon.c Mon Mar 23 12:46:20 2015 -0500 +++ b/toys/pending/runcon.c Mon Mar 23 13:09:48 2015 -0500 @@ -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); }