1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

add options.NoLchown option to createTar call

Signed-off-by: Louis Delossantos <ldelossa.ld@gmail.com>
This commit is contained in:
Louis Delossantos 2019-08-15 18:06:56 -04:00
parent f18ad28874
commit 9c5f3adbf5

View file

@ -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
}