diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-11-20 21:59:43 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-11-20 21:59:43 +0000 |
commit | 14e1600adf12c4174c8b6c43f483ad7ce37b1765 (patch) | |
tree | 4aac8b9d465d146a254d2453e9e54807c8831992 | |
parent | 87c0e3c842f3eeeb60cda62f92d19a52f5563a4d (diff) | |
download | portage-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
-rwxr-xr-x | bin/emaint | 4 |
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} |