mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-06 05:01:10 -07:00
Fix posix_ownership.
This commit is contained in:
parent
1fdfd128ba
commit
3078da31af
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue