From 9016e4da692b6d31ffd10913fdbf5a66c9f1646e Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 4 Oct 2006 07:37:01 +0000 Subject: [PATCH] Don't apply the sticky bits until we have a complete plan for bug #149062. svn path=/main/trunk/; revision=4589 --- bin/emerge | 2 +- pym/portage.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/emerge b/bin/emerge index bd3ca3e2d..90c1778b1 100755 --- a/bin/emerge +++ b/bin/emerge @@ -2030,7 +2030,7 @@ class MergeTask(object): portage_util.ensure_dirs( os.path.dirname(pkgsettings["PORTAGE_BUILDDIR"]), uid=portage.portage_uid, gid=portage.portage_gid, - mode=01775) + mode=070, mask=0) builddir_lock = None try: builddir_lock = portage_locks.lockdir( diff --git a/pym/portage.py b/pym/portage.py index a1fb2aef3..7a6db9505 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -2695,7 +2695,7 @@ def prepare_build_dirs(myroot, mysettings, cleanup): try: portage_util.ensure_dirs(mysettings["BUILD_PREFIX"]) portage_util.apply_secpass_permissions(mysettings["BUILD_PREFIX"], - gid=portage_gid, uid=portage_uid, mode=01775) + gid=portage_gid, uid=portage_uid, mode=070, mask=0) for dir_key in ("PORTAGE_BUILDDIR", "HOME", "PKG_LOGDIR", "T"): """These directories don't necessarily need to be group writable. However, the setup phase is commonly run as a privileged user prior @@ -5799,7 +5799,7 @@ class dblink: self.settings, 0, 0, self.vartree.dbapi) portage_util.ensure_dirs( os.path.dirname(self.settings["PORTAGE_BUILDDIR"]), - uid=portage_uid, gid=portage_gid, mode=01775) + uid=portage_uid, gid=portage_gid, mode=070, mask=0) builddir_lock = None try: if myebuildpath: @@ -6638,7 +6638,7 @@ def pkgmerge(mytbz2, myroot, mysettings, mydbapi=None, vartree=None, prev_mtimes myebuild = os.path.join( infloc, os.path.basename(mytbz2)[:-4] + "ebuild") portage_util.ensure_dirs(os.path.dirname(builddir), - uid=portage_uid, gid=portage_gid, mode=01775) + uid=portage_uid, gid=portage_gid, mode=070, mask=0) builddir_lock = portage_locks.lockdir(builddir) try: shutil.rmtree(builddir) -- 2.26.2