Closed
Description
Bug report
The test_add_dir_getmember
added in #30283 fails if the current user's uid or gid is larger than 16777215 because of limitations of UStar format.
Note that the other test cases don't have this problem.
This test should either avoid depending on the current user's uid/gid (such as by using an explicit uid/gid) or be skipped if the current uid/gid is 8**8 or larger.
For example,
def filter(tarinfo):
tarinfo.uid = 100
tarinfo.gid = 100
return tarinfo
...
tar.add(name, filter=filter)
Will use 100 as the uid and gid instead of the current user's uid/gid.