switch_root: improve behavior on error; improve help text
*: make "can't execute '%s'" message uniform
This commit is contained in:
@ -129,10 +129,10 @@ int runcon_main(int argc UNUSED_PARAM, char **argv)
|
||||
context_str(con));
|
||||
|
||||
if (setexeccon(context_str(con)))
|
||||
bb_error_msg_and_die("cannot set up security context '%s'",
|
||||
bb_error_msg_and_die("can't set up security context '%s'",
|
||||
context_str(con));
|
||||
|
||||
execvp(argv[0], argv);
|
||||
|
||||
bb_perror_msg_and_die("cannot execute '%s'", argv[0]);
|
||||
bb_perror_msg_and_die("can't execute '%s'", argv[0]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user