Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-commits
Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-commits@g.o
From: "Zac Medico (zmedico)" <zmedico@g.o>
Subject: portage r12450 - main/branches/2.1.6/pym/_emerge
Date: Mon, 12 Jan 2009 08:14:05 +0000
Author: zmedico
Date: 2009-01-12 08:14:04 +0000 (Mon, 12 Jan 2009)
New Revision: 12450

Modified:
   main/branches/2.1.6/pym/_emerge/__init__.py
Log:
When dropping privileges inside action_sync(), set the umask to preserve
the group write bit if appropriate. (trunk r12380)

Modified: main/branches/2.1.6/pym/_emerge/__init__.py
===================================================================
--- main/branches/2.1.6/pym/_emerge/__init__.py	2009-01-12 08:13:47 UTC (rev 12449)
+++ main/branches/2.1.6/pym/_emerge/__init__.py	2009-01-12 08:14:04 UTC (rev 12450)
@@ -11645,6 +11645,10 @@
 			spawn_kwargs["gid"]    = st.st_gid
 			spawn_kwargs["groups"] = [st.st_gid]
 			spawn_kwargs["env"]["HOME"] = homedir
+			umask = 0002
+			if not st.st_mode & 0020:
+				umask = umask | 0020
+			spawn_kwargs["umask"] = umask
 
 	syncuri = settings.get("SYNC", "").strip()
 	if not syncuri:



Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
portage r12449 - main/branches/2.1.6/pym/portage
Next by thread:
portage r12451 - main/branches/2.1.6/pym/portage/dbapi
Previous by date:
portage r12449 - main/branches/2.1.6/pym/portage
Next by date:
portage r12451 - main/branches/2.1.6/pym/portage/dbapi


Updated Dec 31, 2011

Summary: Archive of the gentoo-commits mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.