Browse Source

Allow umask to be 000 (patch contributed by Rowan Nairn).

Chris McDonough 15 năm trước cách đây
mục cha
commit
894cc3889d
2 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 2 0
      CHANGES.txt
  2. 1 1
      src/supervisor/process.py

+ 2 - 0
CHANGES.txt

@@ -1,5 +1,7 @@
 Next Release
 
+  - Allow umask to be 000 (patch contributed by Rowan Nairn).
+
   - Fixed a bug introduced in 3.0a7 where supervisorctl wouldn't ask
     for a username/password combination properly from a
     password-protected supervisord if it wasn't filled in within the

+ 1 - 1
src/supervisor/process.py

@@ -324,7 +324,7 @@ class Subprocess:
                 options.write(2, msg)
             else:
                 try:
-                    if self.config.umask:
+                    if self.config.umask is not None:
                         options.setumask(self.config.umask)
                     options.execve(filename, argv, env)
                 except OSError, why: