about summary refs log tree commit diff
path: root/libio/fileops.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-08-28 08:41:52 +0000
committerUlrich Drepper <drepper@redhat.com>2002-08-28 08:41:52 +0000
commitc096ab2534deffc2668b90fc86798d7fdaa70f55 (patch)
tree7218bc68820b796933c2babb85565a774d9d1403 /libio/fileops.c
parent7a5affebe810c786bfc9ef17cdc4d0bc20a1302e (diff)
downloadglibc-c096ab2534deffc2668b90fc86798d7fdaa70f55.tar.gz
glibc-c096ab2534deffc2668b90fc86798d7fdaa70f55.tar.xz
glibc-c096ab2534deffc2668b90fc86798d7fdaa70f55.zip
Add i386/dl-brk.S, mips/dl-brk.S, and sparc/dl-brk.S.
Diffstat (limited to 'libio/fileops.c')
-rw-r--r--libio/fileops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libio/fileops.c b/libio/fileops.c
index 720796a72a..e9e919306d 100644
--- a/libio/fileops.c
+++ b/libio/fileops.c
@@ -237,7 +237,7 @@ _IO_file_open (fp, filename, posix_mode, prot, read_write, is32not64)
     return NULL;
   fp->_fileno = fdesc;
   _IO_mask_flags (fp, read_write,_IO_NO_READS+_IO_NO_WRITES+_IO_IS_APPENDING);
-  if (read_write & _IO_IS_APPENDING)
+  if ((read_write & _IO_IS_APPENDING) && (read_write & _IO_NO_READS))
     if (_IO_SEEKOFF (fp, (_IO_off64_t)0, _IO_seek_end, _IOS_INPUT|_IOS_OUTPUT)
 	== _IO_pos_BAD && errno != ESPIPE)
       {