Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: always ignore ownership from tar headers #261

Merged
merged 1 commit into from Feb 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/fetcher.js
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