Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
test: better fs.lchmod() availability check
Browse files Browse the repository at this point in the history
fs.lchmod() is a BSD-ism, not a "not Windows"-ism.
  • Loading branch information
bnoordhuis committed Nov 24, 2011
1 parent 7244b9c commit 55a8a3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/simple/test-fs-chmod.js
Expand Up @@ -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 {
Expand Down

0 comments on commit 55a8a3a

Please sign in to comment.