From ddb5cb47a59798d09521668193b5436330beb5cc Mon Sep 17 00:00:00 2001 From: RyanZim Date: Wed, 18 Oct 2017 15:00:34 -0400 Subject: [PATCH] Use octal notation for chmod values in rimraf.js Backports https://github.com/isaacs/rimraf/commit/38b907fd64656923cc4004ce353e1ad101bd8d1c Fixes #484 --- lib/remove/rimraf.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/remove/rimraf.js b/lib/remove/rimraf.js index 15924c37..f0786945 100644 --- a/lib/remove/rimraf.js +++ b/lib/remove/rimraf.js @@ -117,7 +117,7 @@ function fixWinEPERM (p, options, er, cb) { assert(er instanceof Error) } - options.chmod(p, 666, er2 => { + options.chmod(p, 0o666, er2 => { if (er2) { cb(er2.code === 'ENOENT' ? null : er) } else { @@ -144,7 +144,7 @@ function fixWinEPERMSync (p, options, er) { } try { - options.chmodSync(p, 666) + options.chmodSync(p, 0o666) } catch (er2) { if (er2.code === 'ENOENT') { return