# HG changeset patch # User Rob Landley # Date 1427134188 18000 # Node ID 2d51d89b9d79dee26c3925fca7396a76758fe368 # Parent cba1817972b863c65440657930303e75715325c5 Trivial runcon cleanups. diff -r cba1817972b8 -r 2d51d89b9d79 toys/pending/runcon.c --- 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); }