2006-03-29 Eric Blake <ebb9@byu.net>
* libc/stdio/freopen.c (_freopen_r) [__SCLE]: Fix typo. * libc/stdio64/freopen64.c (_freopen64_r) [__SCLE]: Likewise.
This commit is contained in:
@ -168,7 +168,7 @@ _DEFUN(_freopen_r, (ptr, file, mode, fp),
|
||||
* F_SETFL doesn't change textmode. Don't mess with modes of ttys.
|
||||
*/
|
||||
if (0 <= f && ! isatty (f)
|
||||
&& setmode (f, flags & (O_BINARY | O_TEXT)) == -1)
|
||||
&& setmode (f, oflags & (O_BINARY | O_TEXT)) == -1)
|
||||
f = -1;
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user