• Joe Tsai's avatar
    archive/tar: roundtrip reading device numbers · 17fa5a7c
    Joe Tsai authored
    Both GNU and BSD tar do not care if the devmajor and devminor values are
    set on entries (like regular files) that aren't character or block devices.
    
    While this is non-sensible, it is more consistent with the Writer to actually
    read these fields always. In a vast majority of the cases these will still
    be zero. In the rare situation where someone actually cares about these,
    at least information was not silently lost.
    
    Change-Id: I6e4ba01cd897a1b13c28b1837e102a4fdeb420ba
    Reviewed-on: https://go-review.googlesource.com/55572Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    Run-TryBot: Ian Lance Taylor <iant@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    17fa5a7c