diff options
author | Ron Yorston <rmy@pobox.com> | 2014-12-14 14:20:56 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2014-12-14 14:20:56 +0000 |
commit | 6d6d18d45c145899fce3a39553771cf0af671f30 (patch) | |
tree | 1936d18cbf61b9e0989464aad0a11c52cbeff7b7 /libbb/appletlib.c | |
parent | 0c204dc07b718244c360e0b84df66ce0a012e14f (diff) | |
parent | acb8be721768b54075a51d1859d390904a0f1f6c (diff) | |
download | busybox-w32-6d6d18d45c145899fce3a39553771cf0af671f30.tar.gz busybox-w32-6d6d18d45c145899fce3a39553771cf0af671f30.tar.bz2 busybox-w32-6d6d18d45c145899fce3a39553771cf0af671f30.zip |
Merge branch 'busybox' into merge
Conflicts:
archival/libarchive/open_transformer.c
libbb/lineedit.c
miscutils/man.c
Diffstat (limited to 'libbb/appletlib.c')
-rw-r--r-- | libbb/appletlib.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libbb/appletlib.c b/libbb/appletlib.c index 2c85062b4..b74b6e724 100644 --- a/libbb/appletlib.c +++ b/libbb/appletlib.c | |||
@@ -746,7 +746,8 @@ static int busybox_main(char **argv) | |||
746 | /*bb_error_msg_and_die("applet not found"); - sucks in printf */ | 746 | /*bb_error_msg_and_die("applet not found"); - sucks in printf */ |
747 | full_write2_str(applet_name); | 747 | full_write2_str(applet_name); |
748 | full_write2_str(": applet not found\n"); | 748 | full_write2_str(": applet not found\n"); |
749 | xfunc_die(); | 749 | /* POSIX: "If a command is not found, the exit status shall be 127" */ |
750 | exit(127); | ||
750 | } | 751 | } |
751 | 752 | ||
752 | void FAST_FUNC run_applet_no_and_exit(int applet_no, char **argv) | 753 | void FAST_FUNC run_applet_no_and_exit(int applet_no, char **argv) |
@@ -870,6 +871,7 @@ int main(int argc UNUSED_PARAM, char **argv) | |||
870 | /*bb_error_msg_and_die("applet not found"); - sucks in printf */ | 871 | /*bb_error_msg_and_die("applet not found"); - sucks in printf */ |
871 | full_write2_str(applet_name); | 872 | full_write2_str(applet_name); |
872 | full_write2_str(": applet not found\n"); | 873 | full_write2_str(": applet not found\n"); |
873 | xfunc_die(); | 874 | /* POSIX: "If a command is not found, the exit status shall be 127" */ |
875 | exit(127); | ||
874 | #endif | 876 | #endif |
875 | } | 877 | } |