From b746de3d9662653fc5e03955ecbaa5c58629e51f Mon Sep 17 00:00:00 2001 From: Andrew Gaffney Date: Mon, 1 Dec 2008 07:17:57 -0600 Subject: [PATCH] Default to umask 022 for spawn() unless otherwise specified for gentoo bug #239048 --- ChangeLog | 5 +++++ modules/catalyst_support.py | 2 ++ 2 files changed, 7 insertions(+) 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 -- 2.26.2