summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpypi.fcgi1
-rwxr-xr-xstandalone.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/pypi.fcgi b/pypi.fcgi
index 0b9ec0f..84e360b 100755
--- a/pypi.fcgi
+++ b/pypi.fcgi
@@ -43,6 +43,7 @@ def handle_request(req, env):
#
# Now do the actual CGI handling
#
+os.umask(002) # make directories group-writable
prefix = os.path.dirname(__file__)
sys.path.insert(0, prefix)
import config
diff --git a/standalone.py b/standalone.py
index 2e7f9ae..ca02391 100755
--- a/standalone.py
+++ b/standalone.py
@@ -94,6 +94,7 @@ class StdinoutHandler(RequestHandler):
self.wfile = sys.stdout
def main():
+ os.umask(002) # make directories group-writable
port = 8000
remote_user = None
opts, args = getopt.getopt(sys.argv[1:], 'ir:p:',