[issue11879] TarFile.chown: should use TarInfo.uid if user lookup fails

2011-09-02 Thread Lars Gustäbel
Lars Gustäbel added the comment: Issue #12841 is a duplicate of this one, but I give it precedence because it comes with a working patch. -- resolution: -> duplicate status: open -> closed versions: +Python 2.7, Python 3.3 ___ Python tracker

[issue11879] TarFile.chown: should use TarInfo.uid if user lookup fails

2011-09-01 Thread Doug Hellmann
Changes by Doug Hellmann : -- nosy: +doughellmann ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue11879] TarFile.chown: should use TarInfo.uid if user lookup fails

2011-04-23 Thread Michael Gold
Michael Gold added the comment: The tests passed on Linux (with Python 3.2 under fakeroot): Ran 240 tests in 9.613s OK But I don't see any tests that check the uid/gid of extracted files. -- nosy: +mgold ___ Python tracker

[issue11879] TarFile.chown: should use TarInfo.uid if user lookup fails

2011-04-22 Thread Éric Araujo
Éric Araujo added the comment: If you make the suggested change to your Python, do the tests still pass? -- nosy: +eric.araujo ___ Python tracker ___ ___

[issue11879] TarFile.chown: should use TarInfo.uid if user lookup fails

2011-04-22 Thread Lars Gustäbel
Changes by Lars Gustäbel : -- assignee: -> lars.gustaebel priority: normal -> low ___ Python tracker ___ ___ Python-bugs-list mailing

[issue11879] TarFile.chown: should use TarInfo.uid if user lookup fails

2011-04-20 Thread Ned Deily
Changes by Ned Deily : -- nosy: +lars.gustaebel ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue11879] TarFile.chown: should use TarInfo.uid if user lookup fails

2011-04-19 Thread Michael Gold
New submission from Michael Gold : In TarFile.chown, if the lookup u = pwd.getpwnam(tarinfo.uname)[2] fails, this line is used: u = pwd.getpwuid(tarinfo.uid)[2] This will fail if the uid isn't in /etc/passwd. I think "u = tarinfo.uid" would make more sense. This fallback could also be use