Message216950
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. |
|
Date |
User |
Action |
Args |
2014-04-21 16:42:49 | inigoserna | set | recipients:
+ inigoserna |
2014-04-21 16:42:49 | inigoserna | set | messageid: <1398098569.86.0.723629898468.issue21322@psf.upfronthosting.co.za> |
2014-04-21 16:42:49 | inigoserna | link | issue21322 messages |
2014-04-21 16:42:49 | inigoserna | create | |
|