[git commit] make --help return exitcode 0. Closes 5612
Denys Vlasenko
vda.linux at googlemail.com
Thu Feb 28 11:34:18 UTC 2013
commit: http://git.busybox.net/busybox/commit/?id=efd0698f74caab0a0c8a51228b923ee142e8e278
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
libbb/appletlib.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libbb/appletlib.c b/libbb/appletlib.c
index 67df446..c22686e 100644
--- a/libbb/appletlib.c
+++ b/libbb/appletlib.c
@@ -750,7 +750,7 @@ void FAST_FUNC run_applet_no_and_exit(int applet_no, char **argv)
//TODO: just compare applet_no with APPLET_NO_test
if (!ENABLE_TEST || strcmp(applet_name, "test") != 0) {
/* If you want "foo --help" to return 0: */
- /*xfunc_error_retval = 0;*/
+ xfunc_error_retval = 0;
bb_show_usage();
}
}
More information about the busybox-cvs
mailing list