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 Charles Coulombe
Recipients Charles Coulombe
Date 2019-09-26.14:12:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1569507139.8.0.49605570029.issue38286@roundup.psfhosted.org>
In-reply-to
Content
An archive that does not have sgid that is extracted in a directory with sgid set does not end up having its sgid set since the targetpath is chmod with the mode of the tarinfo. (Lib/tarfile.py#L2277) 

For comparison, an archive extracted with tar has the sgid bit set.

I added a patch as attachment to gather comments before making this PR.
History
Date User Action Args
2019-09-26 14:12:19Charles Coulombesetrecipients: + Charles Coulombe
2019-09-26 14:12:19Charles Coulombesetmessageid: <1569507139.8.0.49605570029.issue38286@roundup.psfhosted.org>
2019-09-26 14:12:19Charles Coulombelinkissue38286 messages
2019-09-26 14:12:19Charles Coulombecreate