-
-
Notifications
You must be signed in to change notification settings - Fork 419
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not set File._errno when reading less than requested bytes. (#2785)
When requesting more bytes than available from a File the _errno was set to although reading less than available bytes (> 0) is no error condition. If anything then FileEOF should be set in this case to signal that we reached the end of file. Nonetheless i kept it as it is right now, as i think it is more reliable to detect FileEOF when reading 0 bytes.
- Loading branch information
Showing
2 changed files
with
36 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters