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

Commit

Permalink
fix(fix-owner): throw away ENOENTs on chownr
Browse files Browse the repository at this point in the history
This is a race npm has run into before. I am not sure how to
reproduce such a thing with cacache, but tbh if a directory
or file disappears mid-chown, I could care less?

Furthermore, if the file/directory's existence actually matters,
this will almost certainly error elsewhere. It's fine for us to
drop files on the floor though.
  • Loading branch information
zkat committed Apr 15, 2017
1 parent d8184fc commit d49bbcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util/fix-owner.js
Expand Up @@ -27,7 +27,7 @@ function fixOwner (filepath, uid, gid) {
filepath,
typeof uid === 'number' ? uid : process.getuid(),
typeof gid === 'number' ? gid : process.getgid()
)
).catch({code: 'ENOENT'}, () => null)
)
}

Expand Down

0 comments on commit d49bbcd

Please sign in to comment.