From: Denis Vlasenko Date: Wed, 25 Jun 2008 12:15:46 +0000 (-0000) Subject: busybox: do not print help to fd 2, print it to fd 1 X-Git-Tag: 1_12_0~299 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=21278dff709d74c677ad18e967728b0578d52dd7;p=oweals%2Fbusybox.git busybox: do not print help to fd 2, print it to fd 1 otherwise this can break scripts --- diff --git a/libbb/appletlib.c b/libbb/appletlib.c index 86f85081c..06a83e58d 100644 --- a/libbb/appletlib.c +++ b/libbb/appletlib.c @@ -638,6 +638,7 @@ static int busybox_main(char **argv) /* leading tab and room to wrap */ output_width -= MAX_APPLET_NAME_LEN + 8; + dup2(1, 2); full_write2_str(bb_banner); /* reuse const string... */ full_write2_str(" multi-call binary\n" "Copyright (C) 1998-2008 Erik Andersen, Rob Landley, Denys Vlasenko\n"