This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/10932] libio use isatty() but don't take care of -ENOTTY


------- Additional Comments From yann at droneaud dot fr  2009-11-09 17:11 -------
Created an attachment (id=4372)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4372&action=view)
Fix call to isatty() in libio

Here is a proposal fix for this problem.

With the patch, the test case returns:

  $ ./stdio-errno /dev/null
  fscanf() returned EOF
  fgetc() returned EOF

  $ ./stdio-errno /dev/zero
  fscanf() failed to parse anything
  fgetc() returned 0 (0x00000000)


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10932

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]