Skip to content

Commit

Permalink
fix: always ignore ownership from tar headers (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
nlf authored Feb 21, 2023
1 parent a08a9a3 commit 8f4e39c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/fetcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ class FetcherBase {
return ((mode | m) & ~this.umask) | exe | 0o600
}

[_tarxOptions] ({ cwd, uid, gid }) {
[_tarxOptions] ({ cwd }) {
const sawIgnores = new Set()
return {
cwd,
Expand Down Expand Up @@ -460,9 +460,9 @@ class FetcherBase {
log.warn('tar', code, msg)
log.silly('tar', code, msg, data)
},
uid,
gid,
umask: this.umask,
// always ignore ownership info from tarball metadata
preserveOwner: false,
}
}
}
Expand Down

0 comments on commit 8f4e39c

Please sign in to comment.