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 lars.gustaebel
Recipients alanmcintyre, lars.gustaebel, loewis, mebrown
Date 2008-02-04.10:51:45
SpamBayes Score 0.030836798
Marked as misclassified No
Message-id <1202122307.52.0.901452647064.issue2004@psf.upfronthosting.co.za>
In-reply-to
Content
This was fixed in the trunk in r53526 about a year ago following
issue1507247. I did not backport it to 2.5 at that time, because it
would have changed existing behaviour. If there are no objections I
could do this now.

The os.mkdir() call in TarFile.makedir() uses the default mode, but the
real mode from the TarInfo object is applied two instructions later in
TarFile._extract_member(). I have nothing against using 0700 in
TarFile.makedir().

The os.makedirs() call in _extract_member() (trunk) is fine. It creates
missing directories that are not part of the archive with default
permissions, that is mode 0777 with the current umask masked out.

I attached a patchset against the release25-maint branch and the trunk
that is supposed to fix the issue and harmonizes the code between the
two versions.
History
Date User Action Args
2008-02-04 10:51:48lars.gustaebelsetspambayes_score: 0.0308368 -> 0.030836798
recipients: + lars.gustaebel, loewis, alanmcintyre, mebrown
2008-02-04 10:51:47lars.gustaebelsetspambayes_score: 0.0308368 -> 0.0308368
messageid: <1202122307.52.0.901452647064.issue2004@psf.upfronthosting.co.za>
2008-02-04 10:51:46lars.gustaebellinkissue2004 messages
2008-02-04 10:51:45lars.gustaebelcreate