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
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:
|
|