summaryrefslogtreecommitdiff
path: root/lib/fs.js
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2013-03-21 10:52:01 -0700
committerisaacs <i@izs.me>2013-03-21 10:52:01 -0700
commit2f88272ba298f20f5756415d2a69e6f6617fcbbe (patch)
tree105fbc68153b456110fbf8354642b8770fdbca7a /lib/fs.js
parentf150d569159537f478b78c8132e055a4d3fbb44e (diff)
parent92cc1878812ca458462130a63d6f856854cf8cda (diff)
downloadnodejs-2f88272ba298f20f5756415d2a69e6f6617fcbbe.tar.gz
nodejs-2f88272ba298f20f5756415d2a69e6f6617fcbbe.tar.bz2
nodejs-2f88272ba298f20f5756415d2a69e6f6617fcbbe.zip
Merge remote-tracking branch 'ry/v0.10' into master
Conflicts: src/node.cc src/node_version.h
Diffstat (limited to 'lib/fs.js')
-rw-r--r--lib/fs.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fs.js b/lib/fs.js
index e637e03f6..b6cc49036 100644
--- a/lib/fs.js
+++ b/lib/fs.js
@@ -950,7 +950,7 @@ fs.writeFileSync = function(path, data, options) {
assertEncoding(options.encoding);
var flag = options.flag || 'w';
- var fd = fs.openSync(path, flag);
+ var fd = fs.openSync(path, flag, options.mode);
if (!Buffer.isBuffer(data)) {
data = new Buffer('' + data, options.encoding || 'utf8');
}