• Joe Tsai's avatar
    archive/tar: re-implement USTAR path splitting · 4c557743
    Joe Tsai authored
    The logic for USTAR was disabled because a previous implementation of
    Writer had a wrong understanding of the differences between USTAR and GNU,
    causing the prefix field is incorrectly be populated in GNU files.
    
    Now that this issue has been fixed, we can re-enable the logic for USTAR
    path splitting, which allows Writer to use the USTAR for a wider range
    of possible inputs.
    
    Updates #9683
    Updates #12594
    Updates #17630
    
    Change-Id: I9fe34e5df63f99c6dd56fee3a7e7e4d6ec3995c9
    Reviewed-on: https://go-review.googlesource.com/55574
    Run-TryBot: Joe Tsai <thebrokentoaster@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    4c557743
Name
Last commit
Last update
..
gnu-incremental.tar Loading commit data...
gnu-long-nul.tar Loading commit data...
gnu-multi-hdrs.tar Loading commit data...
gnu.tar Loading commit data...
hardlink.tar Loading commit data...
hdr-only.tar Loading commit data...
invalid-go17.tar Loading commit data...
issue10968.tar Loading commit data...
issue11169.tar Loading commit data...
issue12435.tar Loading commit data...
neg-size.tar Loading commit data...
nil-uid.tar Loading commit data...
pax-bad-hdr-file.tar Loading commit data...
pax-bad-mtime-file.tar Loading commit data...
pax-multi-hdrs.tar Loading commit data...
pax-nul-path.tar Loading commit data...
pax-nul-xattrs.tar Loading commit data...
pax-path-hdr.tar Loading commit data...
pax-pos-size-file.tar Loading commit data...
pax.tar Loading commit data...
small.txt Loading commit data...
small2.txt Loading commit data...
sparse-formats.tar Loading commit data...
star.tar Loading commit data...
ustar-file-devs.tar Loading commit data...
ustar-file-reg.tar Loading commit data...
ustar.tar Loading commit data...
v7.tar Loading commit data...
writer-big-long.tar Loading commit data...
writer-big.tar Loading commit data...
writer.tar Loading commit data...
xattrs.tar Loading commit data...