aboutsummaryrefslogtreecommitdiffstats
path: root/interpret.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2014-08-03 22:09:27 +0300
committerArnold D. Robbins <arnold@skeeve.com>2014-08-03 22:09:27 +0300
commit4bfa1b9c2e5ef3bb08eb107bd9aca7a8748ce209 (patch)
treed879293b279feb4abe51d55b1230c2dffaae8731 /interpret.h
parentd3bd5c88e7505063348d88604180d3e1e6e0f5a9 (diff)
parent8f2f7ef2872a9a95dc1506504b60225ef98944f1 (diff)
downloadegawk-4bfa1b9c2e5ef3bb08eb107bd9aca7a8748ce209.tar.gz
egawk-4bfa1b9c2e5ef3bb08eb107bd9aca7a8748ce209.tar.bz2
egawk-4bfa1b9c2e5ef3bb08eb107bd9aca7a8748ce209.zip
Merge branch 'gawk-4.1-stable'
Diffstat (limited to 'interpret.h')
-rw-r--r--interpret.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/interpret.h b/interpret.h
index ff9ba768..c26a9d46 100644
--- a/interpret.h
+++ b/interpret.h
@@ -1192,9 +1192,12 @@ match_re:
}
if (! inrec(curfile, & errcode)) {
- if (errcode > 0 && (do_traditional || ! pc->has_endfile))
- fatal(_("error reading input file `%s': %s"),
+ if (errcode > 0) {
+ update_ERRNO_int(errcode);
+ if (do_traditional || ! pc->has_endfile)
+ fatal(_("error reading input file `%s': %s"),
curfile->public.name, strerror(errcode));
+ }
JUMPTO(ni);
} /* else