test: better fs.lchmod() availability check

fs.lchmod() is a BSD-ism, not a "not Windows"-ism.
This commit is contained in:
Ben Noordhuis committed 2011-11-25 00:56:05 +01:00
1 parent 7244b9cee8
commit 55a8a3aad4
1 file changed
+1 -1
+1 -1
View File
@@ -127,7 +127,7 @@ fs.open(file, 'a', function(err, fd) {
});
// lchmod
if (!is_windows) {
if (fs.lchmod) {
var link = path.join(common.tmpDir, 'symbolic-link');
try {