From c096ab2534deffc2668b90fc86798d7fdaa70f55 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 28 Aug 2002 08:41:52 +0000 Subject: Add i386/dl-brk.S, mips/dl-brk.S, and sparc/dl-brk.S. --- libio/fileops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libio/fileops.c') 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) { -- cgit v1.2.3