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 seblu
Recipients seblu
Date 2011-08-25.14:17:13
SpamBayes Score 8.717697e-09
Marked as misclassified No
Message-id <1314281834.23.0.939615944176.issue12841@psf.upfronthosting.co.za>
In-reply-to
Content
This patch fix extraction of tarfile which override tarfile uid/gid 

tarfile.py extract function override uid/gid of a file if uid/gid is not
existant on the system.

When user is not root (uid 0), common behaviour of extracting is correct.
When user is root, python implementation try to preserve (like tar -p) ownership
from tarball, but if uid/gid doesn't exist it remplace by process uid/gid.
This leads to fake the expected behaviour of preservation!

By example, extracting tarball with a root filesystem will create incorrect
ownership for file where owner/group is not on the current filesystem.
History
Date User Action Args
2011-08-25 14:17:14seblusetrecipients: + seblu
2011-08-25 14:17:14seblusetmessageid: <1314281834.23.0.939615944176.issue12841@psf.upfronthosting.co.za>
2011-08-25 14:17:13seblulinkissue12841 messages
2011-08-25 14:17:13seblucreate