Date: Mon, 10 Dec 2012 02:35:20 +0000 (UTC) From: Eitan Adler <eadler@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r244067 - stable/9/usr.sbin/chkgrp Message-ID: <201212100235.qBA2ZKsA095917@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: eadler Date: Mon Dec 10 02:35:19 2012 New Revision: 244067 URL: http://svnweb.freebsd.org/changeset/base/244067 Log: MFC r243077: Fix error code if file isn't readable. Approved by: cperciva (implicit) Modified: stable/9/usr.sbin/chkgrp/chkgrp.c Directory Properties: stable/9/usr.sbin/chkgrp/ (props changed) Modified: stable/9/usr.sbin/chkgrp/chkgrp.c ============================================================================== --- stable/9/usr.sbin/chkgrp/chkgrp.c Mon Dec 10 02:33:17 2012 (r244066) +++ stable/9/usr.sbin/chkgrp/chkgrp.c Mon Dec 10 02:35:19 2012 (r244067) @@ -80,7 +80,7 @@ main(int argc, char *argv[]) /* open group file */ if ((gf = fopen(gfn, "r")) == NULL) - err(EX_IOERR, "%s", gfn); /* XXX - is IO_ERR the correct exit code? */ + err(EX_NOINPUT, "%s", gfn); /* check line by line */ while (++n) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212100235.qBA2ZKsA095917>