From 04456ad234429f88918fab7c81b741c1814a4351 Mon Sep 17 00:00:00 2001 From: Bar Weiss <33583364+barweiss@users.noreply.github.com> Date: Tue, 15 Sep 2020 17:00:15 +0300 Subject: [PATCH] Fix copyDir to normalize file paths in tar archive (#360) --- pkg/container/docker_run.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/container/docker_run.go b/pkg/container/docker_run.go index 79e35d1..3c6fcff 100644 --- a/pkg/container/docker_run.go +++ b/pkg/container/docker_run.go @@ -400,7 +400,7 @@ func (cr *containerReference) copyDir(dstPath string, srcPath string) common.Exe } // update the name to correctly reflect the desired destination when untaring - header.Name = sansPrefix + header.Name = filepath.ToSlash(sansPrefix) header.Mode = int64(fi.Mode()) header.ModTime = fi.ModTime()