Default to umask 022 for spawn() unless otherwise specified for gentoo bug #239048
authorAndrew Gaffney <agaffney@gentoo.org>
Mon, 1 Dec 2008 13:17:57 +0000 (07:17 -0600)
committerAndrew Gaffney <agaffney@gentoo.org>
Mon, 1 Dec 2008 13:17:57 +0000 (07:17 -0600)
ChangeLog
modules/catalyst_support.py

index 3cf534efc5b580687068826edfd55dbbaf4daf88..5974256e110b65c0418aee0e3b1cb73beef55046 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
 # Copyright 2002-2008 Gentoo Foundation; 2008 Chris Gianelloni, Andrew Gaffney
 # Distributed under the GPL v2
 
+  01 Dec 2008; Andrew Gaffney <agaffney@gentoo.org>
+  modules/catalyst_support.py:
+  Default to umask 022 for spawn() unless otherwise specified for gentoo bug
+  #239048
+
   29 Nov 2008; Andrew Gaffney <agaffney@gentoo.org> catalyst,
   modules/catalyst_support.py, modules/generic_stage_target.py:
   Add support for -P/--purgeonly option
index ab59c5e0120f4338706cf4626b0a2df787da10af..20d8b6f5545a146c86d2c511c560e0ab7b5dbfd5 100644 (file)
@@ -479,6 +479,8 @@ def spawn(mycommand,env={},raw_exit_code=False,opt_name=None,fd_pipes=None,retur
                         os.setuid(uid)
                 if umask:
                         os.umask(umask)
+                else:
+                        os.umask(022)
 
                 try:
                         #print "execing", myc, myargs