浏览代码

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)