mirror of git://sourceware.org/git/glibc.git
[BZ #4359]
2007-10-13 Ulrich Drepper <drepper@redhat.com> [BZ #4359] * libio/__freading.c (__freading): Don't return true for write-only streams.
This commit is contained in:
parent
fab1a490ac
commit
0ea4967708
|
|
@ -1,3 +1,9 @@
|
||||||
|
2007-10-13 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
[BZ #4359]
|
||||||
|
* libio/__freading.c (__freading): Don't return true for
|
||||||
|
write-only streams.
|
||||||
|
|
||||||
2007-10-12 Ulrich Drepper <drepper@redhat.com>
|
2007-10-12 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* locale/programs/repertoire.c (repertoire_read): Always free
|
* locale/programs/repertoire.c (repertoire_read): Always free
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* Copyright (C) 2000, 2002 Free Software Foundation, Inc.
|
/* Copyright (C) 2000, 2002, 2007 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
|
|
@ -21,6 +21,7 @@
|
||||||
int
|
int
|
||||||
__freading (FILE *fp)
|
__freading (FILE *fp)
|
||||||
{
|
{
|
||||||
return ((fp->_flags & _IO_NO_WRITES)
|
return (((fp->_flags & _IO_NO_WRITES)
|
||||||
|| (fp->_flags & _IO_CURRENTLY_PUTTING) == 0);
|
|| (fp->_flags & _IO_CURRENTLY_PUTTING) == 0)
|
||||||
|
&& (fp->_flags & _IO_NO_READS) == 0);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue