Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
24757851
Kaydet (Commit)
24757851
authored
Eyl 05, 2011
tarafından
Lars Gustäbel
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge with 3.2: Issue #12841: Fix tarfile extraction of non-existent uids/gids.
üst
6a8c8a80
2e7ddd37
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
tarfile.py
Lib/tarfile.py
+2
-8
NEWS
Misc/NEWS
+5
-0
No files found.
Lib/tarfile.py
Dosyayı görüntüle @
24757851
...
...
@@ -2366,17 +2366,11 @@ class TarFile(object):
try
:
g
=
grp
.
getgrnam
(
tarinfo
.
gname
)[
2
]
except
KeyError
:
try
:
g
=
grp
.
getgrgid
(
tarinfo
.
gid
)[
2
]
except
KeyError
:
g
=
os
.
getgid
()
g
=
tarinfo
.
gid
try
:
u
=
pwd
.
getpwnam
(
tarinfo
.
uname
)[
2
]
except
KeyError
:
try
:
u
=
pwd
.
getpwuid
(
tarinfo
.
uid
)[
2
]
except
KeyError
:
u
=
os
.
getuid
()
u
=
tarinfo
.
uid
try
:
if
tarinfo
.
issym
()
and
hasattr
(
os
,
"lchown"
):
os
.
lchown
(
targetpath
,
u
,
g
)
...
...
Misc/NEWS
Dosyayı görüntüle @
24757851
...
...
@@ -271,6 +271,11 @@ Core and Builtins
Library
-------
- Issue #12841: tarfile unnecessarily checked the existence of numerical user
and group ids on extraction. If one of them did not exist the respective id
of the current user (i.e. root) was used for the file and ownership
information was lost.
- Issue #12888: Fix a bug in HTMLParser.unescape that prevented it to escape
more than 128 entities. Patch by Peter Otten.
...
...
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