Message303655
This bug is not platform specific.
I've attached a reproduction:
$ python
>>> import tarfile
>>> tarfile.open("test.tar", "r").next().isdir()
True
$ tar -tvf test.tar
-rw-rw-r-- 0/0 0 1969-12-31 16:00 123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/foo.txt
$ tar --version
tar (GNU tar) 1.27.1
For some background, this bug was original filed against the Go standard library (for which I am the maintainer of the Go implementation of tar). When I investigated the issue, I discovered that Go was doing the right thing, and that the discrepancy was due to the check I pointed to earlier. The GNU tool indicates that this is a regular file as well. |
|
Date |
User |
Action |
Args |
2017-10-03 22:07:23 | Joe Tsai | set | recipients:
+ Joe Tsai, lars.gustaebel, serhiy.storchaka, nitishch |
2017-10-03 22:07:23 | Joe Tsai | set | messageid: <1507068443.11.0.213398074469.issue31557@psf.upfronthosting.co.za> |
2017-10-03 22:07:23 | Joe Tsai | link | issue31557 messages |
2017-10-03 22:07:23 | Joe Tsai | create | |
|