Bug #197797 - Set umask to 022 so that created files (such as the
authorZac Medico <zmedico@gentoo.org>
Tue, 20 Nov 2007 21:59:43 +0000 (21:59 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 20 Nov 2007 21:59:43 +0000 (21:59 -0000)
world file) have sane permissions.

svn path=/main/branches/2.1.2/; revision=8554

bin/emaint

index 90809ee4fdc3834eae1a96f19557cbe8fb1e9e36..597527cdd04069408a06f439cc4c8993e8ed2659 100755 (executable)
@@ -125,6 +125,10 @@ class VdbKeyHandler(object):
 
 def emaint_main(myargv):
 
+       # Similar to emerge, emaint needs a default umask so that created
+       # files (such as the world file) have sane permissions.
+       os.umask(022)
+
        # TODO: Create a system that allows external modules to be added without
        #       the need for hard coding.
        modules = {"world" : WorldHandler}