From 9c5f3adbf53a69870793848063948fa311f8830a Mon Sep 17 00:00:00 2001 From: Louis Delossantos Date: Thu, 15 Aug 2019 18:06:56 -0400 Subject: [PATCH] add options.NoLchown option to createTar call Signed-off-by: Louis Delossantos --- pkg/archive/diff.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/archive/diff.go b/pkg/archive/diff.go index 146e21fe18..1bcfafcd3b 100644 --- a/pkg/archive/diff.go +++ b/pkg/archive/diff.go @@ -196,7 +196,7 @@ func UnpackLayer(dest string, layer io.Reader, options *TarOptions) (size int64, return 0, err } - if err := createTarFile(path, dest, srcHdr, srcData, true, nil, options.InUserNS); err != nil { + if err := createTarFile(path, dest, srcHdr, srcData, !options.NoLchown, nil, options.InUserNS); err != nil { return 0, err }