From: Andrew Gaffney Date: Mon, 1 Dec 2008 13:17:57 +0000 (-0600) Subject: Default to umask 022 for spawn() unless otherwise specified for gentoo bug #239048 X-Git-Tag: CATALYST_2_0_6_916~64 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=b746de3d9662653fc5e03955ecbaa5c58629e51f;p=catalyst.git Default to umask 022 for spawn() unless otherwise specified for gentoo bug #239048 --- diff --git a/ChangeLog b/ChangeLog index 3cf534ef..5974256e 100644 --- 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 + modules/catalyst_support.py: + Default to umask 022 for spawn() unless otherwise specified for gentoo bug + #239048 + 29 Nov 2008; Andrew Gaffney catalyst, modules/catalyst_support.py, modules/generic_stage_target.py: Add support for -P/--purgeonly option diff --git a/modules/catalyst_support.py b/modules/catalyst_support.py index ab59c5e0..20d8b6f5 100644 --- a/modules/catalyst_support.py +++ b/modules/catalyst_support.py @@ -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