Commits

Zhang Huangbin committed 35ed63e

Set umask: os.umask(0077).

  • Participants
  • Parent commits ad2dcaa

Comments (0)

Files changed (2)

File src/iredapd-rr.py

 import logging
 import daemon
 
-__version__ = "1.3.2"
+__version__ = "1.4.0"
 
 sys.path.append(os.path.abspath(os.path.dirname(__file__)) + '/plugins-rr')
 
 
 
 def main():
+    # Set umask.
+    os.umask(0077)
+
     # Chroot in current directory.
     try:
         os.chdir(os.path.abspath(os.path.dirname(__file__)))

File src/iredapd.py

 import logging
 import daemon
 
-__version__ = "1.3.2"
+__version__ = "1.4.0"
 
 sys.path.append(os.path.abspath(os.path.dirname(__file__)) + '/plugins')
 
 
 
 def main():
+    # Set umask.
+    os.umask(0077)
+
     # Chroot in current directory.
     try:
         os.chdir(os.path.abspath(os.path.dirname(__file__)))