[New-bugs-announce] [issue21322] Pathlib .owner() and .group() methods fail on broken links
Iñigo Serna
report at bugs.python.org
Mon Apr 21 18:42:49 CEST 2014
New submission from Iñigo Serna:
Pathlib .owner() and .group() methods fail on broken symlinks.
They use:
return pwd.getpwuid(self.stat().st_uid).pw_name
and:
return grp.getgrgid(self.stat().st_gid).gr_name
It should be self.lstat().
Attached simple fix as unified diff.
----------
components: Library (Lib)
files: pathlib-34-owner_group_fixed.diff
keywords: patch
messages: 216950
nosy: inigoserna
priority: normal
severity: normal
status: open
title: Pathlib .owner() and .group() methods fail on broken links
type: crash
versions: Python 3.4
Added file: http://bugs.python.org/file34992/pathlib-34-owner_group_fixed.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21322>
_______________________________________
More information about the New-bugs-announce
mailing list