From: Marien Zwart Date: Mon, 6 Feb 2006 01:41:10 +0000 (-0000) Subject: Make sure confcache files are writable by the portage group, not just the portage... X-Git-Tag: v2.1_pre5_2760~77 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c454ce95d8799e64237ef20567c0f9727736b5b7;p=portage.git Make sure confcache files are writable by the portage group, not just the portage user. svn path=/main/trunk/; revision=2671 --- diff --git a/pym/portage.py b/pym/portage.py index 4bd7a65ac..f5949bd5e 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -2685,8 +2685,8 @@ def doebuild(myebuild,mydo,myroot,mysettings,debug=0,listonly=0,fetchonly=0,clea for x in listdir(mysettings["CONFCACHE_DIR"]): p = os.path.join(mysettings["CONFCACHE_DIR"], x) st = os.stat(p) - if not (st.st_mode & 07777) & 07600 == 0600: - os.chmod(p, (st.st_mode & 0777) | 0600) + if not (st.st_mode & 07777) & 07660 == 0660: + os.chmod(p, (st.st_mode & 0777) | 0660) if not st.st_gid == portage_gid: os.chown(p, -1, portage_gid)