mozilla/rust — pull request #6311 by indutny (2013-05-07 21:05:08+00:00)
Title: io: handle fread() errors

When, occasionally, trying to read directory instead of file, `fread()`
returns `EISDIR` error. And, considering, absence of error handling,
`read_whole_stream()` just loops indefinitely.