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.
W
William Chargin committed
674935b8caf33e47c78f1b8e197b1b77a04992d2
Parent: 4fac7ed
Committed by GitHub <noreply@github.com>
on 2/12/2020, 7:56:02 PM