OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
buglet in cat.c

From: Cedric Berger (cedricberger.to)
Date: Sat Apr 02 2005 - 07:22:19 CST


I was reading cat.c sources, and something seemed odd:

void
raw_cat(int rfd)
{
     [...]
     if (fstat(wfd, &sbuf))
         err(1, "%s", filename);

It seem to me that one of the two last lines above is
wrong (don't know which one) because fstat is done on
output file, but the err() call display input file and
not "stdout" like a few line afterwards.

Cedric