diff options
-rwxr-xr-x | pypi.fcgi | 1 | ||||
-rwxr-xr-x | standalone.py | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -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:', |