summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-05-14 21:42:02 +0000
committerZac Medico <zmedico@gentoo.org>2006-05-14 21:42:02 +0000
commit469f4998f728cca0847ceb712b423e653f5eff78 (patch)
treec96f8c271799b478dad20c7401530803121ce19a
parent36930e225de6998d03fed9269738cab71d36958f (diff)
downloadportage-469f4998f728cca0847ceb712b423e653f5eff78.tar.gz
portage-469f4998f728cca0847ceb712b423e653f5eff78.tar.bz2
portage-469f4998f728cca0847ceb712b423e653f5eff78.zip
Ensure a sane global umask for bug #133307 (regression from r3228).
svn path=/main/trunk/; revision=3354
-rw-r--r--pym/portage.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage.py b/pym/portage.py
index d09b1749c..080071d6c 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -6914,6 +6914,9 @@ def init_legacy_globals():
archlist, features, groups, pkglines, thirdpartymirrors, usedefaults, \
profiledir, flushmtimedb
+ # Portage needs to ensure a sane umask for the files it creates.
+ os.umask(022)
+
kwargs = {}
for k, envvar in (("config_root", "PORTAGE_CONFIGROOT"), ("target_root", "ROOT")):
kwargs[k] = os.environ.get(envvar, "/")