Fix copyDir to normalize file paths in tar archive (#360)
This commit is contained in:
parent
7d443c6520
commit
04456ad234
1 changed files with 1 additions and 1 deletions
|
@ -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
|
// 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.Mode = int64(fi.Mode())
|
||||||
header.ModTime = fi.ModTime()
|
header.ModTime = fi.ModTime()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue