Respect argument passed to Untar in helpers

This commit is contained in:
Ettore Di Giacinto 2020-02-11 16:28:10 +01:00
parent ea2a60a853
commit 54b0dce54b
No known key found for this signature in database
GPG Key ID: 1ADA699B145A2D1C

View File

@ -21,8 +21,6 @@ import (
"os"
"path/filepath"
. "github.com/mudler/luet/pkg/config"
"github.com/docker/docker/pkg/archive"
)
@ -61,7 +59,7 @@ func Untar(src, dest string, sameOwner bool) error {
}
defer in.Close()
if LuetCfg.GetGeneral().SameOwner {
if sameOwner {
// PRE: i have root privileged.
opts := &archive.TarOptions{