Skip to content

Commit

Permalink
Merge pull request #501 from jprichardson/rimraf-backports
Browse files Browse the repository at this point in the history
Use octal notation for chmod values in rimraf.js
  • Loading branch information
jprichardson committed Oct 18, 2017
2 parents cc6d425 + ddb5cb4 commit 2599b67
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 2599b67

Please sign in to comment.