svn commit: r244067 - stable/9/usr.sbin/chkgrp
Eitan Adler
eadler at FreeBSD.org
Mon Dec 10 02:35:20 UTC 2012
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) {
More information about the svn-src-stable-9
mailing list