view sources/patches/busybox-wc.patch @ 996:bd6cc5603989

Fix busybox so the 2.6.33 mips kernel builds.
author Rob Landley <rob@landley.net>
date Fri, 12 Mar 2010 02:52:58 -0600
parents
children
line wrap: on
line source

--- busybox.4/coreutils/wc.c
+++ busybox.5/coreutils/wc.c
@@ -88,6 +88,8 @@ int wc_main(int argc UNUSED_PARAM, char
 	if (!argv[0]) {
 		*--argv = (char *) bb_msg_standard_input;
 		fname_fmt = "\n";
+	}
+	if (!argv[1]) {
 		if (!((print_type-1) & print_type)) /* exactly one option? */
 			start_fmt = "%"COUNT_FMT;
 	}