[issue9065] tarfile: default root:root ownership is incorrect.

2010-10-04 Thread Lars Gustäbel

Lars Gustäbel l...@gustaebel.de added the comment:

Fixed in r85211 (py3k), r85212 (release31-maint), r85213 (release27-maint).

Thank you for the report.

--
resolution:  - accepted
stage:  - committed/rejected
status: open - closed
type:  - behavior

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9065
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9065] tarfile: default root:root ownership is incorrect.

2010-08-04 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 3.1, Python 3.2 -Python 2.5, Python 2.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9065
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9065] tarfile: default root:root ownership is incorrect.

2010-06-24 Thread Lars Gustäbel

Changes by Lars Gustäbel l...@gustaebel.de:


--
assignee:  - lars.gustaebel
nosy: +lars.gustaebel

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9065
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9065] tarfile: default root:root ownership is incorrect.

2010-06-23 Thread Justin Bronder

New submission from Justin Bronder jsbron...@gentoo.org:

According to the tar spec [1], uname/gname should only be filled
when they have successfully been resolved from the uid/gid.  The
tarfile module incorrectly defaults to root:root in this case.

A patch against svn trunk r82183 is included.  All tarfile unit
tests still pass with this patch.  I did not include a new unit
test as chown() is required.

Example using tarfile:
$ ls -l tarfile_user
-rw-r--r-- 1 65533 jbronder 0 2010-06-23 17:44 tarfile_user
$ python -c import tarfile;a = tarfile.open('bleh.tar', 
'w:');a.add('tarfile_user');a.list()
-rw-r--r-- root/jbronder  0 2010-06-23 17:44:55 tarfile_user

Example using GNU tarball:
$ tar -cf bleh.tar tarfile_user
$ python -c import tarfile;a = tarfile.open('bleh.tar').list()
-rw-r--r-- 65533/jbronder  0 2010-06-23 17:44:55 tarfile_user

1. http://www.gnu.org/software/tar/manual/tar.html#SEC170

--
files: python-2.7-tarfile-uid-gid.patch
keywords: patch
messages: 108493
nosy: jsbronder
priority: normal
severity: normal
status: open
title: tarfile:  default root:root ownership is incorrect.
versions: Python 2.5, Python 2.7
Added file: http://bugs.python.org/file17756/python-2.7-tarfile-uid-gid.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9065
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9065] tarfile: default root:root ownership is incorrect.

2010-06-23 Thread Justin Bronder

Changes by Justin Bronder jsbron...@gentoo.org:


--
components: +Library (Lib)
versions: +Python 2.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9065
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com