diff options
author | Eitan Adler <eadler@FreeBSD.org> | 2012-11-15 15:06:06 +0000 |
---|---|---|
committer | Eitan Adler <eadler@FreeBSD.org> | 2012-11-15 15:06:06 +0000 |
commit | 93b4da8a2ae74e738a5b6c1e7240d7f6545ef490 (patch) | |
tree | 678b8f352e7cf0f3cf7513912e5df9214cc7d128 /usr.sbin | |
parent | 2ad87454e2b4c521ede163794485a79af88d30b7 (diff) | |
download | src-93b4da8a2ae74e738a5b6c1e7240d7f6545ef490.tar.gz src-93b4da8a2ae74e738a5b6c1e7240d7f6545ef490.zip |
Fix error code if file isn't readable.
Approved by: cperciva
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=243077
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/chkgrp/chkgrp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/chkgrp/chkgrp.c b/usr.sbin/chkgrp/chkgrp.c index 2dd41a881a05..fa4b7012f5e3 100644 --- a/usr.sbin/chkgrp/chkgrp.c +++ b/usr.sbin/chkgrp/chkgrp.c @@ -73,7 +73,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) { |