[BusyBox-cvs] svn commit: trunk/busybox/coreutils
landley at busybox.net
landley at busybox.net
Sat May 7 07:53:16 UTC 2005
Author: landley
Date: 2005-05-07 01:53:16 -0600 (Sat, 07 May 2005)
New Revision: 10263
Log:
Shaun Jackman pointed out that dprintf(STDOUT_FILENO,...) is just a printf.
Modified:
trunk/busybox/coreutils/tail.c
Changeset:
Modified: trunk/busybox/coreutils/tail.c
===================================================================
--- trunk/busybox/coreutils/tail.c 2005-05-07 07:17:43 UTC (rev 10262)
+++ trunk/busybox/coreutils/tail.c 2005-05-07 07:53:16 UTC (rev 10263)
@@ -62,7 +62,8 @@
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();
}
}
More information about the busybox-cvs
mailing list