commit | 674935b8caf33e47c78f1b8e197b1b77a04992d2 | [log] [tgz] |
---|---|---|
author | William Chargin <wchargin@gmail.com> | Wed Feb 12 11:56:02 2020 -0800 |
committer | GitHub <noreply@github.com> | Wed Feb 12 11:56:02 2020 -0800 |
tree | fc7f81510ae2bdf298f3fc8dd2c3d2b7584ebc18 | |
parent | 4fac7ed43ebf1771a8fe86fdfe7b9991f3be78cd [diff] |
bpo-18819: tarfile: only set device fields for device files (GH-18080) The GNU docs describe the `devmajor` and `devminor` fields of the tar header struct only in the context of character and block special files, suggesting that in other cases they are not populated. Typical utilities behave accordingly; this patch teaches `tarfile` to do the same.