commit | 41ddd9f60604cd994eeb37eb5708e9d3d5c8484b | [log] [tgz] |
---|---|---|
author | Denys Vlasenko <vda.linux@googlemail.com> | Fri Jun 25 01:46:53 2010 +0200 |
committer | Denys Vlasenko <vda.linux@googlemail.com> | Fri Jun 25 01:46:53 2010 +0200 |
tree | a2c7b5e6ea0d26715bac8c1f9f4b4e1fbad22534 | |
parent | 2b46fd49b14b2ac30e0c767c65ac2b29f6922a45 [diff] [blame] |
*: make exec failure message more consistent Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/miscutils/setsid.c b/miscutils/setsid.c index fd3283e..60ee062 100644 --- a/miscutils/setsid.c +++ b/miscutils/setsid.c
@@ -44,6 +44,7 @@ setsid(); } - BB_EXECVP(argv[1], argv + 1); - bb_simple_perror_msg_and_die(argv[1]); + argv++; + BB_EXECVP(argv[0], argv); + bb_perror_msg_and_die("can't execute '%s'", argv[0]); }