1
0
mirror of https://github.com/docker/cli.git synced 2026-01-15 07:40:57 +03:00

Ignore tar.TypeXGlobalHeader

Docker-DCO-1.1-Signed-off-by: Abel Muiño <amuino@gmail.com> (github: amuino)
Upstream-commit: ce74c8b4d2e68256d85063ee237c8d41174b27c3
Component: engine
This commit is contained in:
Abel Muiño
2014-01-31 14:50:07 +01:00
parent dcb9b96902
commit 094438868d

View File

@@ -228,6 +228,10 @@ func createTarFile(path, extractDir string, hdr *tar.Header, reader *tar.Reader)
return err
}
case tar.TypeXGlobalHeader:
utils.Debugf("PAX Global Extended Headers found and ignored")
return nil
default:
return fmt.Errorf("Unhandled tar header type %d\n", hdr.Typeflag)
}