From e4e026dac44d15e76f85de8952382f1b2287e12b Mon Sep 17 00:00:00 2001 From: "Liam (GH:rezonant)" Date: Wed, 26 Aug 2015 14:20:07 -0400 Subject: [PATCH] Fixes incorrect mask --- test/chmod.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/chmod.js b/test/chmod.js index 14e129b..d340aa4 100644 --- a/test/chmod.js +++ b/test/chmod.js @@ -111,7 +111,7 @@ shell.chmod('644', 'resources/chmod/file1'); shell.chmod('000', 'resources/chmod/file1'); shell.chmod('u+rw,g+wx', 'resources/chmod/file1'); -assert.equal(fs.statSync('resources/chmod/file1').mode & parseInt('462', 8), parseInt('630', 8)); +assert.equal(fs.statSync('resources/chmod/file1').mode & parseInt('630', 8), parseInt('630', 8)); shell.chmod('644', 'resources/chmod/file1'); shell.chmod('700', 'resources/chmod/file1');