summaryrefslogtreecommitdiffstats
path: root/bin/emaint
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-11-20 21:59:43 +0000
committerZac Medico <zmedico@gentoo.org>2007-11-20 21:59:43 +0000
commit14e1600adf12c4174c8b6c43f483ad7ce37b1765 (patch)
tree4aac8b9d465d146a254d2453e9e54807c8831992 /bin/emaint
parent87c0e3c842f3eeeb60cda62f92d19a52f5563a4d (diff)
downloadportage-14e1600adf12c4174c8b6c43f483ad7ce37b1765.tar.gz
portage-14e1600adf12c4174c8b6c43f483ad7ce37b1765.tar.bz2
portage-14e1600adf12c4174c8b6c43f483ad7ce37b1765.zip
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
Diffstat (limited to 'bin/emaint')
-rwxr-xr-xbin/emaint4
1 files changed, 4 insertions, 0 deletions
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}