Message50488
If the upperdirs in the member file's pathname does not
exist. tarfile creates those paths with 0777 permission
bits and does not honor umask.
This patch uses umask to set the ti.mode of the created
directory for later usage in chmod.
--- tarfile.py (revision 46993)
+++ tarfile.py (working copy)
@@ -1560,7 +1560,9 @@
ti = TarInfo()
ti.name = upperdirs
ti.type = DIRTYPE
- ti.mode = 0777
+ umask = os.umask(0)
+ ti.mode = 0777 - umask
+ os.umask(umask)
ti.mtime = tarinfo.mtime
ti.uid = tarinfo.uid
ti.gid = tarinfo.gid
|
|
Date |
User |
Action |
Args |
2007-08-23 15:52:52 | admin | link | issue1507247 messages |
2007-08-23 15:52:52 | admin | create | |
|