소스 검색

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)