Skip to content
This repository was archived by the owner on Jul 3, 2019. It is now read-only.

Commit 4670e9b

Browse files
committed
fix(fixOwner): ignore EEXIST race condition from mkdirp
1 parent b9d2fa2 commit 4670e9b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/util/fix-owner.js

+3
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,8 @@ function mkdirfix (p, uid, gid, cb) {
3737
if (made) {
3838
return fixOwner(made, uid, gid).then(() => made)
3939
}
40+
}).catch({code: 'EEXIST'}, () => {
41+
// There's a race in mkdirp!
42+
return fixOwner(p, uid, gid).then(() => null)
4043
})
4144
}

0 commit comments

Comments
 (0)