• 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
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...