From 28275dc85fa765ed38052a4e303293cd08d49027 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Fri, 21 Jun 2024 22:30:05 +0200 Subject: [PATCH] Do not keep file ownership Signed-off-by: Ettore Di Giacinto --- pkg/oci/image.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/oci/image.go b/pkg/oci/image.go index a1903e8e2fba..40e9112295f5 100644 --- a/pkg/oci/image.go +++ b/pkg/oci/image.go @@ -63,7 +63,7 @@ var defaultRetryPredicate = func(err error) bool { func ExtractOCIImage(img v1.Image, targetDestination string) error { reader := mutate.Extract(img) - _, err := archive.Apply(context.Background(), targetDestination, reader) + _, err := archive.Apply(context.Background(), targetDestination, reader, archive.WithNoSameOwner()) return err }