[BusyBox-cvs] svn commit: trunk/busybox/coreutils

landley at busybox.net landley at busybox.net
Sat May 7 17:45:38 UTC 2005


Author: landley
Date: 2005-05-07 11:45:38 -0600 (Sat, 07 May 2005)
New Revision: 10268

Log:
Manuel points out that if printf needs a flush to act like dprintf, the result
is bigger.  Revert last patch.



Modified:
   trunk/busybox/coreutils/tail.c


Changeset:
Modified: trunk/busybox/coreutils/tail.c
===================================================================
--- trunk/busybox/coreutils/tail.c	2005-05-07 17:28:49 UTC (rev 10267)
+++ trunk/busybox/coreutils/tail.c	2005-05-07 17:45:38 UTC (rev 10268)
@@ -62,8 +62,7 @@
 static void tail_xprint_header(const char *fmt, const char *filename)
 {
 	/* If we get an output error, there is really no sense in continuing. */
-	if (printf(fmt, filename) < 0 ||
-			fflush(stdout) < 0) {
+	if (dprintf(STDOUT_FILENO, fmt, filename) < 0) {
 		bb_perror_nomsg_and_die();
 	}
 }




More information about the busybox-cvs mailing list