fs: properly handle fd passed to truncate()
Currently, fs.truncate() silently fails when a file descriptor is passed as the first argument. This commit changes this behavior to properly call fs.ftruncate(). PR-URL: https://github.com/joyent/node/pull/9161 Reviewed-By:Colin Ihrig <cjihrig@gmail.com> Reviewed-By:
Timothy J Fontaine <tjfontaine@gmail.com> Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl> Conflicts: lib/fs.js
parent
4fcbb8aa
Please register or sign in to comment