mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
test: better fs.lchmod() availability check
fs.lchmod() is a BSD-ism, not a "not Windows"-ism.
This commit is contained in:
1 parent
7244b9cee8
commit
55a8a3aad4
1 file changed
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user