Преглед изворни кода

set umask to the defautl value instead of 0

Helmut Pozimski пре 8 година
родитељ
комит
2a971b6ed8
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      stddlib/daemon.py

+ 1 - 1
stddlib/daemon.py

@@ -44,7 +44,7 @@ class Daemon(object):
         # Change cwd to / to avoid interfering with other mounted file systems
         os.chdir("/")
         # Reset the umask
-        os.umask(0)
+        os.umask(0o22)
 
         # Close possibly open file descriptors
         os.close(0)