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