]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(_IO_new_file_fopen): Don't prematurely stop parsing mode string.
authorUlrich Drepper <drepper@redhat.com>
Tue, 9 Jun 2009 13:59:02 +0000 (06:59 -0700)
committerPetr Baudis <pasky@suse.cz>
Tue, 9 Jun 2009 15:57:33 +0000 (17:57 +0200)
(cherry picked from commits 0d74e0436195a051d69e78bef10d23879788cb7e,
d360a0da2b42b2b79e9ce9c2d7984c234e840b7a)

ChangeLog
libio/fileops.c

index 1211e1df5ea22ed35f90e9e60e212c2e6c98e061..3063dc8b872b87d837cdbfea9602e225dc62d5a9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-06-09  Ulrich Drepper  <drepper@redhat.com>
+
+       * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
+       parsing mode string.
+
 2009-06-03  Ulrich Drepper  <drepper@redhat.com>
 
        * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
index cf47c915a7e77ee795d3a0228bbee97e5f4a7d5b..4698953f7ae1d37b4e0911bf2e28cc72d7a1519e 100644 (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.
    This file is part of the GNU C Library.
    Written by Per Bothner <bothner@cygnus.com>.
@@ -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.  */