Date: Wed, 31 Oct 2012 17:01:56 +0000 (UTC) From: Jaakko Heinonen <jh@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r242400 - stable/8/bin/cat Message-ID: <201210311701.q9VH1u9s088899@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jh Date: Wed Oct 31 17:01:56 2012 New Revision: 242400 URL: http://svn.freebsd.org/changeset/base/242400 Log: MFC r238653: Use proper error message when fstat(2) fails on stdout. PR: bin/159746 Modified: stable/8/bin/cat/cat.c Directory Properties: stable/8/bin/cat/ (props changed) Modified: stable/8/bin/cat/cat.c ============================================================================== --- stable/8/bin/cat/cat.c Wed Oct 31 17:00:36 2012 (r242399) +++ stable/8/bin/cat/cat.c Wed Oct 31 17:01:56 2012 (r242400) @@ -260,7 +260,7 @@ raw_cat(int rfd) wfd = fileno(stdout); if (buf == NULL) { if (fstat(wfd, &sbuf)) - err(1, "%s", filename); + err(1, "stdout"); if (S_ISREG(sbuf.st_mode)) { /* If there's plenty of RAM, use a large copy buffer */ if (sysconf(_SC_PHYS_PAGES) > PHYSPAGES_THRESHOLD)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210311701.q9VH1u9s088899>