There is a bug in tail -f(ollow) which causes all reads
to be 4 bytes only, regardless of how many bytes remain in file.
Patch for cvs head attached.
/Thomas
--- tail.c.org 2007-10-05 18:32:42.536790011 +0200
+++ tail.c 2007-10-05 18:32:56.159952073 +0200
@@ -271,7 +271,7 @@ int tail_main(int argc, char **argv)
if (nfiles > header_threshhold) {
fmt = header_fmt;
}
- while ((nread = tail_read(fds[i], buf, sizeof(buf))) >
0) {
+ while ((nread = tail_read(fds[i], buf, BUFSIZ)) > 0) {
if (fmt) {
tail_xprint_header(fmt, argv[i]);
fmt = NULL;
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox