Skip to content

Commit

Permalink
Fix write permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
chriso committed Nov 24, 2011
1 parent 54ee1b2 commit 33ec33c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion HISTORY.md
@@ -1,5 +1,6 @@
### v0.4.2
### v0.4.3
* Bug fix for nested getHtml
* Bug fix for write permissions

### v0.4.1
* node v0.6 support
Expand Down
2 changes: 1 addition & 1 deletion lib/node.io/io.js
Expand Up @@ -383,7 +383,7 @@ Job.prototype.write = function (file, data, callback) {

//Cache FD's
if (typeof this.output_streams[file] === 'undefined') {
var write_mode = {flags: 'w', mode: 666, encoding: this.options.encoding};
var write_mode = {flags: 'w', mode: 0644, encoding: this.options.encoding};
this.output_streams[file] = fs.createWriteStream(file, write_mode);
this.output_streams[file].on('error', self.exit);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{ "name" : "node.io",
"description" : "A distributed data scraping and processing framework",
"version" : "0.4.2",
"version" : "0.4.3",
"homepage" : "http://github.com/chriso/node.io",
"keywords" : ["data","mapreduce","map","reduce","scraping","html","parsing","parse","scrape","process","processing","data"],
"author" : "Chris O'Hara <cohara87@gmail.com>",
Expand Down

0 comments on commit 33ec33c

Please sign in to comment.