Skip to content

Commit

Permalink
[proc_hidepid] Fix DeprecationWarning in fact
Browse files Browse the repository at this point in the history
(cherry picked from commit e22017b)
  • Loading branch information
drybjed committed Jan 4, 2023
1 parent 715ab78 commit c7c8bc4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ with open('/proc/mounts', 'r') as mounts:

if output['gid']:
try:
output['group'] = getgrgid(output['gid']).gr_name
output['group'] = getgrgid(int(output['gid'])).gr_name
except KeyError:
pass

Expand Down

0 comments on commit c7c8bc4

Please sign in to comment.