diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-25 12:15:46 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-25 12:15:46 +0000 |
commit | 21278dff709d74c677ad18e967728b0578d52dd7 (patch) | |
tree | 63a1b148be91917cae9d97787885579c95511b2e /libbb/appletlib.c | |
parent | f4cfa1bd5a4fb303939946db104a44bed4a380ad (diff) | |
download | busybox-w32-21278dff709d74c677ad18e967728b0578d52dd7.tar.gz busybox-w32-21278dff709d74c677ad18e967728b0578d52dd7.tar.bz2 busybox-w32-21278dff709d74c677ad18e967728b0578d52dd7.zip |
busybox: do not print help to fd 2, print it to fd 1
otherwise this can break scripts
Diffstat (limited to 'libbb/appletlib.c')
-rw-r--r-- | libbb/appletlib.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) | |||
638 | /* leading tab and room to wrap */ | 638 | /* leading tab and room to wrap */ |
639 | output_width -= MAX_APPLET_NAME_LEN + 8; | 639 | output_width -= MAX_APPLET_NAME_LEN + 8; |
640 | 640 | ||
641 | dup2(1, 2); | ||
641 | full_write2_str(bb_banner); /* reuse const string... */ | 642 | full_write2_str(bb_banner); /* reuse const string... */ |
642 | full_write2_str(" multi-call binary\n" | 643 | full_write2_str(" multi-call binary\n" |
643 | "Copyright (C) 1998-2008 Erik Andersen, Rob Landley, Denys Vlasenko\n" | 644 | "Copyright (C) 1998-2008 Erik Andersen, Rob Landley, Denys Vlasenko\n" |