svn commit: r304648 - stable/10/lib/libc/stdio

Andrey A. Chernov ache at FreeBSD.org
Tue Aug 23 00:00:07 UTC 2016


Author: ache
Date: Tue Aug 23 00:00:06 2016
New Revision: 304648
URL: https://svnweb.freebsd.org/changeset/base/304648

Log:
  Direct commit, equal to MFC part of r295632 which is not planned for
  MFC at whole.
  Set __SERR on  __slbexpand() errors.

Modified:
  stable/10/lib/libc/stdio/fgetln.c

Modified: stable/10/lib/libc/stdio/fgetln.c
==============================================================================
--- stable/10/lib/libc/stdio/fgetln.c	Mon Aug 22 22:51:10 2016	(r304647)
+++ stable/10/lib/libc/stdio/fgetln.c	Tue Aug 23 00:00:06 2016	(r304648)
@@ -159,6 +159,7 @@ fgetln(FILE *fp, size_t *lenp)
 
 error:
 	*lenp = 0;		/* ??? */
+	fp->_flags |= __SERR;
 	FUNLOCKFILE(fp);
 	return (NULL);		/* ??? */
 }


More information about the svn-src-stable-10 mailing list