joyent/node — pull request #5090 by raymondfeng (2013-03-20 00:16:15+00:00)
Title: fs: make writeFileSync/appendFileSync correctly set file mode

The current fs.writeFileSync() does NOT pass options.mode to openSync(). As a result, the file mode is not set correctly.