1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00

(_IO_new_file_fopen): Don't prematurely stop parsing mode string.

This commit is contained in:
Ulrich Drepper
2009-06-09 06:59:02 -07:00
parent b77c932329
commit 0d74e04361

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1993, 1995, 1997-2005, 2006, 2007, 2008 /* Copyright (C) 1993, 1995, 1997-2005, 2006, 2007, 2008, 2009
Free Software Foundation, Inc. Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
Written by Per Bothner <bothner@cygnus.com>. Written by Per Bothner <bothner@cygnus.com>.
@ -319,11 +319,11 @@ _IO_new_file_fopen (fp, filename, mode, is32not64)
continue; continue;
case 'c': case 'c':
fp->_flags2 |= _IO_FLAGS2_NOTCANCEL; fp->_flags2 |= _IO_FLAGS2_NOTCANCEL;
break; continue;
#ifdef O_CLOEXEC #ifdef O_CLOEXEC
case 'e': case 'e':
oflags |= O_CLOEXEC; oflags |= O_CLOEXEC;
break; continue;
#endif #endif
default: default:
/* Ignore. */ /* Ignore. */