You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fs.readFile[Sync]("/dev/stdin") does not always read the entire file #1070
The root cause of the issue is that fs.readFile() stats the file and reads the amount of bytes specified in the st_size field. This works only for regular files.
The fix would be to check whether the ST_IFREG flag is set. If not, use a slower but more reliable method to read the entire file.
I think this is a "good first bug" for new contributors.
Activity
brendanashworth commentedon Mar 25, 2015
I think this should be fixed in #1074, closing.