[Pkg-bazaar-maint] Bug#470494: python2.5: doesn't use umask when extracting tarfile [was bzr-builddeb: Permissions of unpacked files don't respect umask]

James Westby jw+debian at jameswestby.net
Thu Aug 28 11:37:57 UTC 2008


reassign 470494 python2.5
found 470494 2.5.2-10
retitle 470494 python2.5: doesn't use umask when extracting tarfile
thanks

Hi,

This was reported against bzr-builddeb, but it can be reproduced with
python's tarfile directly.

When tar extracts a file it applies the user's umask to it, unless
the user is root, i.e.

     --no-same-permissions
       apply umask to extracted files (the default for non-root users)


If the tarfile has 0777 permissions on the directories (as apparently
make dist creates), then that is how python2.5's tarfile will extract
them, but tar will usually not make them world writeable, due to the
user's umask. Perhaps python should do the same.

This is similar to

  http://bugs.python.org/issue1507247

but that was a different location in the code, and was closed long
ago.

Thanks,

James






More information about the Pkg-bazaar-maint mailing list