From: Zac Medico Date: Tue, 20 Nov 2007 21:59:43 +0000 (-0000) Subject: Bug #197797 - Set umask to 022 so that created files (such as the X-Git-Tag: v2.1.4~269 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=14e1600adf12c4174c8b6c43f483ad7ce37b1765;p=portage.git Bug #197797 - Set umask to 022 so that created files (such as the world file) have sane permissions. svn path=/main/branches/2.1.2/; revision=8554 --- diff --git a/bin/emaint b/bin/emaint index 90809ee4f..597527cdd 100755 --- a/bin/emaint +++ b/bin/emaint @@ -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}