svn commit: r294298 - head/usr.bin/m4
Baptiste Daroussin
bapt at FreeBSD.org
Mon Jan 18 22:12:09 UTC 2016
Author: bapt
Date: Mon Jan 18 22:12:07 2016
New Revision: 294298
URL: https://svnweb.freebsd.org/changeset/base/294298
Log:
Import misc.c,v 1.46 from OpenBSD (by espie@)
Yet another missed ferror call
Modified:
head/usr.bin/m4/misc.c
Modified: head/usr.bin/m4/misc.c
==============================================================================
--- head/usr.bin/m4/misc.c Mon Jan 18 21:53:39 2016 (r294297)
+++ head/usr.bin/m4/misc.c Mon Jan 18 22:12:07 2016 (r294298)
@@ -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;
More information about the svn-src-head
mailing list