Merge pull request #5198 from glb/ignore-pax-global-header

fix: ignore pax_global_header "file" in chart validation
This commit is contained in:
Adam Reese authored and GitHub committed 2019-01-22 09:09:19 -08:00
commit e62dddcfb6
1 file changed
+6
+6
View File
@@ -93,6 +93,12 @@ func loadArchiveFiles(in io.Reader) ([]*BufferedFile, error) {
continue
}
switch hd.Typeflag {
// We don't want to process these extension header files.
case tar.TypeXGlobalHeader, tar.TypeXHeader:
continue
}
// Archive could contain \ if generated on Windows
delimiter := "/"
if strings.ContainsRune(hd.Name, '\\') {