浏览代码

add options.NoLchown option to createTar call

Signed-off-by: Louis Delossantos <ldelossa.ld@gmail.com>
Louis Delossantos 6 年之前
父节点
当前提交
9c5f3adbf5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      pkg/archive/diff.go

+ 1 - 1
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
 			}