← Commit list

cce1ae2ce

Rob Landley
Rob Landley
2005-05-07
FAILED Duration: 24s

Subject

Shaun Jackman pointed out that dprintf(STDOUT_FILENO,...) is just a printf.

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

coreutils/tail.c+2 -1
@@ -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();
}
}