Fix copyDir to normalize file paths in tar archive (#360)

这个提交包含在:
Bar Weiss
2020-09-15 17:00:15 +03:00
提交者 GitHub
父节点 7d443c6520
当前提交 04456ad234

查看文件

@@ -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()