fix: ignore pax header "file"s in chart validation

Signed-off-by: Geoff Baskwill <me@geoffbaskwill.ca>

Signed-off-by: Kevin Labesse <kevin@labesse.me>
pull/4961/head^2
Geoff Baskwill 7 years ago
parent 54bd5cca93
commit 66cdae0bd0

@ -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, '\\') {

Loading…
Cancel
Save