Fix posix_ownership.

This commit is contained in:
Labrys of Knossos 2022-12-31 22:26:19 -05:00 committed by Clinton Hall
parent 1fdfd128ba
commit 3078da31af

View file

@ -75,8 +75,8 @@ def posix_ownership(path):
stat_result = os.stat(path)
# Get account name from path stat result
owner = pwd.getpwuid(stat_result.st_uid)
group = grp.getgrgid(stat_result.st_gid)
owner = pwd.getpwuid(stat_result.st_uid).pw_name
group = grp.getgrgid(stat_result.st_gid).gr_name
return owner, group