• Guillaume J. Charmes's avatar
    archive/tar: Fix bug preventing untar · 51f3cbab
    Guillaume J. Charmes authored
    Do not use ustar format if we need the GNU one.
    Change \000 to \x00 for consistency
    Check for "ustar\x00" instead of "ustar\x00\x00" for conistency with tar
    and compatiblity with archive generated with older code (which was ustar\x00\x20\x00)
    Add test for long name + big file.
    
    LGTM=iant
    R=golang-codereviews, iant
    CC=golang-codereviews
    https://golang.org/cl/99050043
    51f3cbab
writer_test.go 11.5 KB