From: Ulrich Drepper Date: Tue, 9 Jun 2009 13:59:02 +0000 (-0700) Subject: (_IO_new_file_fopen): Don't prematurely stop parsing mode string. X-Git-Tag: fedora/glibc-2.10.90-1~8^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0d74e0436195a051d69e78bef10d23879788cb7e;p=thirdparty%2Fglibc.git (_IO_new_file_fopen): Don't prematurely stop parsing mode string. --- diff --git a/libio/fileops.c b/libio/fileops.c index cf47c915a7e..4698953f7ae 100644 --- a/libio/fileops.c +++ b/libio/fileops.c @@ -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. This file is part of the GNU C Library. Written by Per Bothner . @@ -319,11 +319,11 @@ _IO_new_file_fopen (fp, filename, mode, is32not64) continue; case 'c': fp->_flags2 |= _IO_FLAGS2_NOTCANCEL; - break; + continue; #ifdef O_CLOEXEC case 'e': oflags |= O_CLOEXEC; - break; + continue; #endif default: /* Ignore. */