Browse Source

Use octal notation for chmod values in rimraf.js

Backports 38b907fd64
Fixes #484
ci/travis-osximage
RyanZim 7 years ago
parent
commit
ddb5cb47a5
  1. 4
      lib/remove/rimraf.js

4
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

Loading…
Cancel
Save