0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-25 08:19:38 +01:00
nodejs/test
Bruno Jouhier c82e580a50 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
2015-02-21 12:13:21 -05:00
..
addons smalloc: extend user API 2015-02-20 11:02:33 -07:00
debugger
disabled
fixtures
gc
internet test: remove flaky test functionality 2015-02-16 15:27:33 +11:00
message events: optimize various functions 2015-02-09 17:47:49 +01:00
parallel fs: properly handle fd passed to truncate() 2015-02-21 12:13:21 -05:00
pummel test: remove flaky test functionality 2015-02-16 15:27:33 +11:00
sequential tracing: add lttng support for tracing on linux 2015-02-09 18:06:57 +01:00
testpy
timers
common.js tracing: add lttng support for tracing on linux 2015-02-09 18:06:57 +01:00