diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-05-14 21:42:02 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-05-14 21:42:02 +0000 |
commit | 469f4998f728cca0847ceb712b423e653f5eff78 (patch) | |
tree | c96f8c271799b478dad20c7401530803121ce19a | |
parent | 36930e225de6998d03fed9269738cab71d36958f (diff) | |
download | portage-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.py | 3 |
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, "/") |