]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
[BZ #6719]
authorUlrich Drepper <drepper@redhat.com>
Tue, 8 Jul 2008 16:21:11 +0000 (16:21 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 8 Jul 2008 16:21:11 +0000 (16:21 +0000)
2008-07-08  Ulrich Drepper  <drepper@redhat.com>
[BZ #6719]
* libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
when selecting fully-buffered stream.
Patch by Wang Xin <wxinee@gmail.com>.

ChangeLog
libio/iosetvbuf.c

index 0ea85f9078270b94fe31304bc13777ea5a757287..3a9f983441b2e620b23b8a8a304c6d75e539cb33 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-07-08  Ulrich Drepper  <drepper@redhat.com>
+
+       [BZ #6719]
+       * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
+       when selecting fully-buffered stream.
+       Patch by Wang Xin <wxinee@gmail.com>.
+
 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
 
        * sysdeps/mach/hurd/open.c: Include <stdio.h>.
index 7580230eb6f7f9ab8dffabc93ed233ac55567665..a92eaebf8556fab0ffb1f26435de3492c4ef3d09 100644 (file)
@@ -45,7 +45,7 @@ _IO_setvbuf (fp, buf, mode, size)
   switch (mode)
     {
     case _IOFBF:
-      fp->_IO_file_flags &= ~_IO_LINE_BUF|_IO_UNBUFFERED;
+      fp->_IO_file_flags &= ~(_IO_LINE_BUF|_IO_UNBUFFERED);
       if (buf == NULL)
        {
          if (fp->_IO_buf_base == NULL)