From 93b4da8a2ae74e738a5b6c1e7240d7f6545ef490 Mon Sep 17 00:00:00 2001
From: Eitan Adler <eadler@FreeBSD.org>
Date: Thu, 15 Nov 2012 15:06:06 +0000
Subject: [PATCH] Fix error code if file isn't readable.

Approved by:	cperciva
MFC after:	1 week
---
 usr.sbin/chkgrp/chkgrp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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) {