diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2010-03-08 23:07:52 +0100 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2010-03-08 23:07:52 +0100 |
commit | 32ae5854dd1a1c77c9019932f248eb2dc1f1d565 (patch) | |
tree | 1da24cd900b9d521f86e946f556a7da36bd9836a /package/busybox/busybox-1.16.0-wc.patch | |
parent | d5bf5f967009733da99c55febacb3fb0be686cad (diff) |
busybox: additional 1.16.0 fixes
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/busybox/busybox-1.16.0-wc.patch')
-rw-r--r-- | package/busybox/busybox-1.16.0-wc.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/package/busybox/busybox-1.16.0-wc.patch b/package/busybox/busybox-1.16.0-wc.patch new file mode 100644 index 000000000..5116fe23f --- /dev/null +++ b/package/busybox/busybox-1.16.0-wc.patch @@ -0,0 +1,12 @@ +diff -urpN busybox-1.16.0/coreutils/wc.c busybox-1.16.0-wc/coreutils/wc.c +--- busybox-1.16.0/coreutils/wc.c 2010-03-08 22:49:32.000000000 +0100 ++++ busybox-1.16.0-wc/coreutils/wc.c 2010-03-08 22:51:29.310086707 +0100 +@@ -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]) { /* zero or one filename? */ + if (!((print_type-1) & print_type)) /* exactly one option? */ + start_fmt = "%"COUNT_FMT; + } |