summaryrefslogtreecommitdiff
path: root/pkd_stub.py
diff options
context:
space:
mode:
Diffstat (limited to 'pkd_stub.py')
-rw-r--r--pkd_stub.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkd_stub.py b/pkd_stub.py
index b6ef8d4..ef5818d 100644
--- a/pkd_stub.py
+++ b/pkd_stub.py
@@ -376,7 +376,9 @@ def serve_screens():
try:
sockets['screen'] = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
sock = sockets['screen']
+ oldmask = os.umask(0o002)
sock.bind(socket_file)
+ os.umask(oldmask)
sock.listen(5)
except:
print('[FATAL] Unable to bind socket file.')