rimraf 2.6.1 → 2.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/rimraf.js +3 -2
package/package.json
CHANGED
package/rimraf.js
CHANGED
|
@@ -5,6 +5,7 @@ var assert = require("assert")
|
|
|
5
5
|
var path = require("path")
|
|
6
6
|
var fs = require("fs")
|
|
7
7
|
var glob = require("glob")
|
|
8
|
+
var _0666 = parseInt('666', 8)
|
|
8
9
|
|
|
9
10
|
var defaultGlobOpts = {
|
|
10
11
|
nosort: true,
|
|
@@ -165,7 +166,7 @@ function fixWinEPERM (p, options, er, cb) {
|
|
|
165
166
|
if (er)
|
|
166
167
|
assert(er instanceof Error)
|
|
167
168
|
|
|
168
|
-
options.chmod(p,
|
|
169
|
+
options.chmod(p, _0666, function (er2) {
|
|
169
170
|
if (er2)
|
|
170
171
|
cb(er2.code === "ENOENT" ? null : er)
|
|
171
172
|
else
|
|
@@ -187,7 +188,7 @@ function fixWinEPERMSync (p, options, er) {
|
|
|
187
188
|
assert(er instanceof Error)
|
|
188
189
|
|
|
189
190
|
try {
|
|
190
|
-
options.chmodSync(p,
|
|
191
|
+
options.chmodSync(p, _0666)
|
|
191
192
|
} catch (er2) {
|
|
192
193
|
if (er2.code === "ENOENT")
|
|
193
194
|
return
|