1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

Use al possible bytes from fopen mode string.

This commit is contained in:
Eric Blake
2011-04-22 23:40:57 -04:00
committed by Ulrich Drepper
parent 4df46dbda7
commit b722481ac2
3 changed files with 24 additions and 17 deletions

View File

@ -1,3 +1,10 @@
2011-04-22 Ulrich Drepper <drepper@gmail.com>
[BZ #12685]
* libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
mode string.
Patch by Eric Blake <eblake@redhat.com>.
2011-04-20 H.J. Lu <hongjiu.lu@intel.com>
* sunrpc/Makefile (need-export-routines): Add svc_run.

4
NEWS
View File

@ -1,4 +1,4 @@
GNU C Library NEWS -- history of user-visible changes. 2011-4-17
GNU C Library NEWS -- history of user-visible changes. 2011-4-22
Copyright (C) 1992-2009, 2010, 2011 Free Software Foundation, Inc.
See the end for copying conditions.
@ -19,7 +19,7 @@ Version 2.14
* The following bugs are resolved with this release:
11724, 12420, 12445, 12454, 12460, 12469, 12489, 12509, 12510, 12518, 12583,
12587, 12597, 12631, 12650, 12653, 12655
12587, 12597, 12631, 12650, 12653, 12655, 12685
Version 2.13

View File

@ -290,7 +290,7 @@ _IO_new_file_fopen (fp, filename, mode, is32not64)
#ifdef _LIBC
last_recognized = mode;
#endif
for (i = 1; i < 6; ++i)
for (i = 1; i < 7; ++i)
{
switch (*++mode)
{