summaryrefslogtreecommitdiffstats
path: root/custodia/httpd/server.py
diff options
context:
space:
mode:
Diffstat (limited to 'custodia/httpd/server.py')
-rw-r--r--custodia/httpd/server.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/custodia/httpd/server.py b/custodia/httpd/server.py
index f10f539..dc88aef 100644
--- a/custodia/httpd/server.py
+++ b/custodia/httpd/server.py
@@ -64,7 +64,9 @@ class ForkingLocalHTTPServer(ForkingMixIn, UnixStreamServer):
self.server_string = self.config['server_string']
def server_bind(self):
+ oldmask = os.umask(000)
UnixStreamServer.server_bind(self)
+ os.umask(oldmask)
self.socket_file = self.socket.getsockname()