Skip to content

Commit 44ba804

Browse files
Make examples/drop_privileges.py compatible with Python3
1 parent 83083e9 commit 44ba804

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/drop_privileges.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def drop_privileges(uid_name='nobody', gid_name='nogroup'):
1616
os.setgroups([])
1717
os.setgid(running_gid)
1818
os.setuid(running_uid)
19-
old_umask = os.umask(077)
19+
old_umask = os.umask(0o77)
2020

2121
def main():
2222
uinput_fd = uinput.fdopen()

0 commit comments

Comments
 (0)