mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-07 03:10:12 +00:00
While processing the content of a tar image, linuxkit's moby tool is blindly reusing the original tar format. Moreover it locates the files under a new prefix, so if the original file was stored as USTAR in the original archive, the filename length and new prefix could be greater than the USTAR name limit leading to a fatal error. The fix is to always enforce PAX format on all copied files from the original image archive. Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>