This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author inigoserna
Recipients inigoserna
Date 2014-04-21.16:42:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1398098569.86.0.723629898468.issue21322@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-04-21 16:42:49inigosernasetrecipients: + inigoserna
2014-04-21 16:42:49inigosernasetmessageid: <1398098569.86.0.723629898468.issue21322@psf.upfronthosting.co.za>
2014-04-21 16:42:49inigosernalinkissue21322 messages
2014-04-21 16:42:49inigosernacreate