diff options
author | bapt <bapt@FreeBSD.org> | 2016-01-18 22:12:07 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2016-01-18 22:12:07 +0000 |
commit | cf792338169fcd15fbb628696c34d234e8781827 (patch) | |
tree | 7497db185246104bcdd54c181756ce8e4de12aba /usr.bin | |
parent | 5d61edf9a6bd39f8d89ebedc41ea66b0170e8dcf (diff) | |
download | FreeBSD-src-cf792338169fcd15fbb628696c34d234e8781827.zip FreeBSD-src-cf792338169fcd15fbb628696c34d234e8781827.tar.gz |
Import misc.c,v 1.46 from OpenBSD (by espie@)
Yet another missed ferror call
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/m4/misc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/m4/misc.c b/usr.bin/m4/misc.c index eeca68e..aeafea9 100644 --- a/usr.bin/m4/misc.c +++ b/usr.bin/m4/misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: misc.c,v 1.45 2014/12/21 09:33:12 espie Exp $ */ +/* $OpenBSD: misc.c,v 1.46 2015/12/07 14:12:46 espie Exp $ */ /* $NetBSD: misc.c,v 1.6 1995/09/28 05:37:41 tls Exp $ */ /* @@ -424,6 +424,8 @@ do_emit_synchline(void) void release_input(struct input_file *f) { + if (ferror(f->file)) + errx(1, "Fatal error reading from %s\n", f->name); if (f->file != stdin) fclose(f->file); f->c = EOF; |