diff options
author | Jared Yanovich <jaredy@cvs.openbsd.org> | 2005-04-05 01:18:54 +0000 |
---|---|---|
committer | Jared Yanovich <jaredy@cvs.openbsd.org> | 2005-04-05 01:18:54 +0000 |
commit | 66d76c7b635e4a1b6ac7eef6c3dea155645d04e0 (patch) | |
tree | 2d8b91a200a8b2da1196e4b9836de0f3f0e31aae /bin | |
parent | 219403c52d4b8282fd5240475a2a2972cbbe6563 (diff) |
change incorrect filename in output on fstat() failure
from Cedric Berger <cedric@berger.to>
ok otto
Diffstat (limited to 'bin')
-rw-r--r-- | bin/cat/cat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/cat/cat.c b/bin/cat/cat.c index 4652fe92345..27e29ab6049 100644 --- a/bin/cat/cat.c +++ b/bin/cat/cat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cat.c,v 1.16 2004/05/21 02:11:33 jolan Exp $ */ +/* $OpenBSD: cat.c,v 1.17 2005/04/05 01:18:53 jaredy Exp $ */ /* $NetBSD: cat.c,v 1.11 1995/09/07 06:12:54 jtc Exp $ */ /* @@ -43,7 +43,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)cat.c 8.2 (Berkeley) 4/27/95"; #else -static char rcsid[] = "$OpenBSD: cat.c,v 1.16 2004/05/21 02:11:33 jolan Exp $"; +static char rcsid[] = "$OpenBSD: cat.c,v 1.17 2005/04/05 01:18:53 jaredy Exp $"; #endif #endif /* not lint */ @@ -238,7 +238,7 @@ raw_cat(int rfd) wfd = fileno(stdout); if (buf == NULL) { if (fstat(wfd, &sbuf)) - err(1, "%s", filename); + err(1, "stdout"); bsize = MAX(sbuf.st_blksize, BUFSIZ); if ((buf = malloc(bsize)) == NULL) err(1, "malloc"); |