ref: b31e965ea36f21cf4da91ae33d840999e10a76d4
parent: a68bee44d3a833442671329357169dc755060156
author: Ori Bernstein <[email protected]>
date: Fri Nov 15 08:26:25 EST 2019
Parse global pax header in the right place.
--- a/sys/src/cmd/tar.c
+++ b/sys/src/cmd/tar.c
@@ -855,12 +855,12 @@
return nil;
if (parsepax(ar, bp, hdr, LF_PAXHDR))
goto again;
+ if (parsepax(ar, bp, &globlhdr, LF_PAXGLOBL))
+ goto again;
if (getname(ar, bp, hdr))
goto again;
if (parsehdr(hdr, bp) == -1)
sysfatal("could not parse header: %r");
- if (parsepax(ar, bp, &globlhdr, LF_PAXGLOBL))
- goto again;
return bp;
}