diff options
author | Rob Landley | 2005-05-07 17:45:38 +0000 |
---|---|---|
committer | Rob Landley | 2005-05-07 17:45:38 +0000 |
commit | b9dfb8c03febea78ab1924b4924c381ca983891c (patch) | |
tree | 3b143f508a820e1f84e010b6ba506026280be7fd | |
parent | 0fcd9430ceabcc2a0bec9470f358f56572d36f3d (diff) | |
download | busybox-b9dfb8c03febea78ab1924b4924c381ca983891c.zip busybox-b9dfb8c03febea78ab1924b4924c381ca983891c.tar.gz |
Manuel points out that if printf needs a flush to act like dprintf, the result
is bigger. Revert last patch.
-rw-r--r-- | coreutils/tail.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/coreutils/tail.c b/coreutils/tail.c index ef00383..e3f89d2 100644 --- a/coreutils/tail.c +++ b/coreutils/tail.c @@ -62,8 +62,7 @@ static int status 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(); } } |