Skip to content

Commit

Permalink
Invert for umask
Browse files Browse the repository at this point in the history
  • Loading branch information
shiomax committed Dec 5, 2022
1 parent b242ede commit 494ddaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion websockify/websockifyserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ def socket(host, port=None, connect=False, prefer_ipv6=False,
except FileNotFoundError:
pass
sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
oldmask = os.umask(unix_socket_mode)
oldmask = os.umask(0o777 ^ unix_socket_mode)
try:
sock.bind(unix_socket)
finally:
Expand Down

0 comments on commit 494ddaf

Please sign in to comment.