about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2009-06-09 06:59:02 -0700
committerUlrich Drepper <drepper@redhat.com>2009-06-09 06:59:02 -0700
commit0d74e0436195a051d69e78bef10d23879788cb7e (patch)
treeed42b4fc8673257cbdccb25d1006254a1985e7cf
parentb77c93232978db6506c75d708df851895ab3d48c (diff)
downloadglibc-0d74e0436195a051d69e78bef10d23879788cb7e.tar.gz
glibc-0d74e0436195a051d69e78bef10d23879788cb7e.tar.xz
glibc-0d74e0436195a051d69e78bef10d23879788cb7e.zip
(_IO_new_file_fopen): Don't prematurely stop parsing mode string.
-rw-r--r--libio/fileops.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libio/fileops.c b/libio/fileops.c
index cf47c915a7..4698953f7a 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 <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.  */