Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
d2e22903
Commit
d2e22903
authored
Jan 23, 2007
by
Lars Gustäbel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch #1507247: tarfile.py: use current umask for intermediate
directories.
parent
e498083b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
13 deletions
+4
-13
Lib/tarfile.py
Lib/tarfile.py
+1
-13
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/tarfile.py
View file @
d2e22903
...
@@ -1630,19 +1630,7 @@ class TarFile(object):
...
@@ -1630,19 +1630,7 @@ class TarFile(object):
# Create all upper directories.
# Create all upper directories.
upperdirs
=
os
.
path
.
dirname
(
targetpath
)
upperdirs
=
os
.
path
.
dirname
(
targetpath
)
if
upperdirs
and
not
os
.
path
.
exists
(
upperdirs
):
if
upperdirs
and
not
os
.
path
.
exists
(
upperdirs
):
ti
=
TarInfo
()
os
.
makedirs
(
upperdirs
)
ti
.
name
=
upperdirs
ti
.
type
=
DIRTYPE
ti
.
mode
=
0777
ti
.
mtime
=
tarinfo
.
mtime
ti
.
uid
=
tarinfo
.
uid
ti
.
gid
=
tarinfo
.
gid
ti
.
uname
=
tarinfo
.
uname
ti
.
gname
=
tarinfo
.
gname
try
:
self
.
_extract_member
(
ti
,
ti
.
name
)
except
:
pass
if
tarinfo
.
islnk
()
or
tarinfo
.
issym
():
if
tarinfo
.
islnk
()
or
tarinfo
.
issym
():
self
.
_dbg
(
1
,
"%s -> %s"
%
(
tarinfo
.
name
,
tarinfo
.
linkname
))
self
.
_dbg
(
1
,
"%s -> %s"
%
(
tarinfo
.
name
,
tarinfo
.
linkname
))
...
...
Misc/NEWS
View file @
d2e22903
...
@@ -12,6 +12,9 @@ What's New in Python 2.6 alpha 1?
...
@@ -12,6 +12,9 @@ What's New in Python 2.6 alpha 1?
Core and builtins
Core and builtins
-----------------
-----------------
- Patch #1507247: tarfile.py: use current umask for intermediate
directories.
- Bug #1637022: Prefix AST symbols with _Py_.
- Bug #1637022: Prefix AST symbols with _Py_.
- Prevent seg fault on shutdown which could occur if an object
- Prevent seg fault on shutdown which could occur if an object
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment