diff options
Diffstat (limited to 'coreutils/env.c')
-rw-r--r-- | coreutils/env.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/coreutils/env.c b/coreutils/env.c index 9635d2b22..c6ba04d35 100644 --- a/coreutils/env.c +++ b/coreutils/env.c | |||
@@ -76,11 +76,11 @@ int env_main(int argc UNUSED_PARAM, char **argv) | |||
76 | ++argv; | 76 | ++argv; |
77 | } | 77 | } |
78 | 78 | ||
79 | if (*argv) { | 79 | if (argv[0]) { |
80 | BB_EXECVP(*argv, argv); | 80 | BB_EXECVP(argv[0], argv); |
81 | /* SUSv3-mandated exit codes. */ | 81 | /* SUSv3-mandated exit codes. */ |
82 | xfunc_error_retval = (errno == ENOENT) ? 127 : 126; | 82 | xfunc_error_retval = (errno == ENOENT) ? 127 : 126; |
83 | bb_simple_perror_msg_and_die(*argv); | 83 | bb_perror_msg_and_die("can't execute '%s'", argv[0]); |
84 | } | 84 | } |
85 | 85 | ||
86 | if (environ) { /* clearenv() may set environ == NULL! */ | 86 | if (environ) { /* clearenv() may set environ == NULL! */ |