summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2010-03-12 23:19:57 +0100
committerPeter Korsgaard <jacmet@sunsite.dk>2010-03-12 23:19:57 +0100
commit0a66aa169af82f12b80e7aacb21676b48503000a (patch)
tree23f2bc9c1eeaf21bcc5376a775d9d9401f357b54
parentb00a1a70b5ca5f370ee108ddf5326d766a6b897e (diff)
downloadbuildroot-novena-0a66aa169af82f12b80e7aacb21676b48503000a.tar.gz
buildroot-novena-0a66aa169af82f12b80e7aacb21676b48503000a.zip
busybox: 1.16.0 tail fix
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/busybox/busybox-1.16.0-tail.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/package/busybox/busybox-1.16.0-tail.patch b/package/busybox/busybox-1.16.0-tail.patch
new file mode 100644
index 000000000..11832a874
--- /dev/null
+++ b/package/busybox/busybox-1.16.0-tail.patch
@@ -0,0 +1,13 @@
+diff -urpN busybox-1.16.0/coreutils/tail.c busybox-1.16.0-tail/coreutils/tail.c
+--- busybox-1.16.0/coreutils/tail.c 2010-03-08 22:49:32.000000000 +0100
++++ busybox-1.16.0-tail/coreutils/tail.c 2010-03-12 22:16:07.105943986 +0100
+@@ -241,7 +241,8 @@ int tail_main(int argc, char **argv)
+ } while (nwrite);
+ }
+ }
+- xwrite(STDOUT_FILENO, buf + nread - nwrite, nwrite);
++ if (nwrite > 0)
++ xwrite(STDOUT_FILENO, buf + nread - nwrite, nwrite);
+ } else if (count) {
+ if (COUNT_BYTES) {
+ taillen += nread;