This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mvo
Recipients mvo
Date 2015-01-08.14:42:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Please consider adding a option to extract a tarfile with the uid/gid instead of the lookup for uname/gname in the tarheader (i.e. what tar --numeric-owner provides).

One use-case is if you unpack a chroot tarfile that contains a /etc/{passwd,group} file with different uid/gid for user/groups like zope that may be present in both host and chroot but have different numbers. With the current approach files owned by this user will get the host uid/gid instead of the uid/gid of the chroot.

Attached is a patch to outline what I have in mind - if there is a chance that this patch goes in I'm happy to write the required test (mocking os.chown()) for this to go in.

Thanks for your consideration,
Date User Action Args
2015-01-08 14:42:24mvosetrecipients: + mvo
2015-01-08 14:42:24mvosetmessageid: <>
2015-01-08 14:42:24mvolinkissue23193 messages
2015-01-08 14:42:24mvocreate