Skip site navigation (1)Skip section navigation (2)
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-7@freebsd.org
Subject:   svn commit: r244069 - stable/7/usr.sbin/chkgrp
Message-ID:  <201212100235.qBA2ZKB1095944@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler
Date: Mon Dec 10 02:35:20 2012
New Revision: 244069
URL: http://svnweb.freebsd.org/changeset/base/244069

Log:
  MFC r243077:
  	Fix error code if file isn't readable.
  
  Approved by:	cperciva (implicit)

Modified:
  stable/7/usr.sbin/chkgrp/chkgrp.c
Directory Properties:
  stable/7/usr.sbin/chkgrp/   (props changed)

Modified: stable/7/usr.sbin/chkgrp/chkgrp.c
==============================================================================
--- stable/7/usr.sbin/chkgrp/chkgrp.c	Mon Dec 10 02:35:20 2012	(r244068)
+++ stable/7/usr.sbin/chkgrp/chkgrp.c	Mon Dec 10 02:35:20 2012	(r244069)
@@ -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.qBA2ZKB1095944>