@zgeoff/atc 2.26.3 → 2.26.5
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
CHANGED
|
@@ -302,8 +302,11 @@ export class ImpProvider implements ExecutionProvider {
|
|
|
302
302
|
|
|
303
303
|
// oxlint-disable-next-line prefer-readonly-parameter-types -- archive bytes have no readonly form
|
|
304
304
|
readonly transferArchive = async (archive: Uint8Array, dir: string, host?: string) => {
|
|
305
|
+
// The archive records the daemon host's owners. Commands in an imp run as
|
|
306
|
+
// root, and root's tar keeps those owners, which git there then refuses
|
|
307
|
+
// as dubious ownership, so the unpacked files take the guest user's owner.
|
|
305
308
|
const result = await this.runOnHost(host, {
|
|
306
|
-
argv: ['sh', '-c', 'mkdir -p "$1" && tar -x -f - -C "$1"', 'sh', dir],
|
|
309
|
+
argv: ['sh', '-c', 'mkdir -p "$1" && tar -x --no-same-owner -f - -C "$1"', 'sh', dir],
|
|
307
310
|
stdin: archive,
|
|
308
311
|
});
|
|
309
312
|
|