mirror of https://github.com/nodejs/node.git
Bugfix: stdin fd (0) being ignored by node.File.
In the case of stdin options.fd is 0, which is considered false, therefore fd gets set to null intead of 0. http://groups.google.com/group/nodejs/msg/80849f6aa0b0eaa0v0.7.4-release
parent
7aaab320b3
commit
53b3d6be35
|
@ -52,7 +52,7 @@ node.fs.File = function (options) {
|
||||||
self.encoding = node.RAW;
|
self.encoding = node.RAW;
|
||||||
}
|
}
|
||||||
//node.debug("encoding: opts=" + options.encoding + " self=" + self.encoding);
|
//node.debug("encoding: opts=" + options.encoding + " self=" + self.encoding);
|
||||||
self.fd = options.fd || null;
|
self.fd = typeof options.fd != 'undefined' ? options.fd : null;
|
||||||
|
|
||||||
var actionQueue = [];
|
var actionQueue = [];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue