mirror of
https://github.com/rwinkhart/go-winio.git
synced 2026-08-28 04:46:50 -04:00
This may be a theoretical situation, but the tar headers may contain both the old and new headers, in which case we would be decoding both. This patch rewrites the function to try the new headers first, and return early if found, then fall back to trying the old headers. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>