Skip to content

Commit

Permalink
Use octal notation for chmod values in rimraf.js
Browse files Browse the repository at this point in the history
Backports isaacs/rimraf@38b907f
Fixes #484
  • Loading branch information
RyanZim committed Oct 18, 2017
1 parent cc6d425 commit ddb5cb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/remove/rimraf.js
Expand Up @@ -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 {
Expand All @@ -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
Expand Down

0 comments on commit ddb5cb4

Please sign in to comment.