diff options
-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); } |