Exit with non-zero status if an input file can not be opened. This was

broken by rev. 1.22.
This commit is contained in:
Tim J. Robbins 2002-06-14 02:20:05 +00:00
parent 8701af62ee
commit 6689fb2bbc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98201

View File

@ -344,6 +344,7 @@ mf_fgets(sp, spflag)
fname = files->fname;
if ((f = fopen(fname, "r")) == NULL) {
warn("%s", fname);
rval = 1;
continue;
}
if (inplace != NULL && *inplace == '\0')