Fix error code if file isn't readable.

Approved by:	cperciva
MFC after:	1 week
This commit is contained in:
Eitan Adler 2012-11-15 15:06:06 +00:00
parent 2ad87454e2
commit 93b4da8a2a

View File

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