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) {
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to