From 70ec70f8d124eeeae5487aca7265bb26c83b129a Mon Sep 17 00:00:00 2001 From: landley Date: Sat, 7 May 2005 07:53:16 +0000 Subject: Shaun Jackman pointed out that dprintf(STDOUT_FILENO,...) is just a printf. git-svn-id: svn://busybox.net/trunk/busybox@10263 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- coreutils/tail.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/coreutils/tail.c b/coreutils/tail.c index e3f89d2ee..ef0038385 100644 --- a/coreutils/tail.c +++ b/coreutils/tail.c @@ -62,7 +62,8 @@ 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 (dprintf(STDOUT_FILENO, fmt, filename) < 0) { + if (printf(fmt, filename) < 0 || + fflush(stdout) < 0) { bb_perror_nomsg_and_die(); } } -- cgit v1.2.3-55-g6feb