From 14e1600adf12c4174c8b6c43f483ad7ce37b1765 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 20 Nov 2007 21:59:43 +0000 Subject: 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 --- bin/emaint | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bin/emaint') 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} -- cgit v1.2.3-1-g7c22