aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-05-07 17:45:38 +0000
committerlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-05-07 17:45:38 +0000
commitc52316f473074c17b928d877025a11b570559f44 (patch)
tree3b143f508a820e1f84e010b6ba506026280be7fd
parent4f01f36837763bd5bb2968196126aaee8e929307 (diff)
downloadbusybox-w32-c52316f473074c17b928d877025a11b570559f44.tar.gz
busybox-w32-c52316f473074c17b928d877025a11b570559f44.tar.bz2
busybox-w32-c52316f473074c17b928d877025a11b570559f44.zip
Manuel points out that if printf needs a flush to act like dprintf, the result
is bigger. Revert last patch. git-svn-id: svn://busybox.net/trunk/busybox@10268 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--coreutils/tail.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/coreutils/tail.c b/coreutils/tail.c
index ef0038385..e3f89d2ee 100644
--- a/coreutils/tail.c
+++ b/coreutils/tail.c
@@ -62,8 +62,7 @@ static int status
62static void tail_xprint_header(const char *fmt, const char *filename) 62static void tail_xprint_header(const char *fmt, const char *filename)
63{ 63{
64 /* If we get an output error, there is really no sense in continuing. */ 64 /* If we get an output error, there is really no sense in continuing. */
65 if (printf(fmt, filename) < 0 || 65 if (dprintf(STDOUT_FILENO, fmt, filename) < 0) {
66 fflush(stdout) < 0) {
67 bb_perror_nomsg_and_die(); 66 bb_perror_nomsg_and_die();
68 } 67 }
69} 68}