summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-06-13 00:06:32 +0000
committerZac Medico <zmedico@gentoo.org>2006-06-13 00:06:32 +0000
commit90fe68184ba60bd14241b3978f164ced4eff8ebf (patch)
treefcf80ee9f9f414b44431f228e8c71b157d77e194
parent73f26e98812ca018f12c4221d9d556c3d467d190 (diff)
downloadportage-90fe68184ba60bd14241b3978f164ced4eff8ebf.tar.gz
portage-90fe68184ba60bd14241b3978f164ced4eff8ebf.tar.bz2
portage-90fe68184ba60bd14241b3978f164ced4eff8ebf.zip
Toggle the setgid bit on $PORT_LOGDIR\elog\ for bug #136278.
svn path=/main/trunk/; revision=3502
-rw-r--r--pym/elog_modules/mod_save.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/elog_modules/mod_save.py b/pym/elog_modules/mod_save.py
index 6c16c2041..fa728fe31 100644
--- a/pym/elog_modules/mod_save.py
+++ b/pym/elog_modules/mod_save.py
@@ -11,7 +11,7 @@ def process(mysettings, cpv, logentries, fulltext):
if not os.path.exists(elogdir):
os.makedirs(elogdir)
os.chown(elogdir, portage_uid, portage_gid)
- os.chmod(elogdir, 0770)
+ os.chmod(elogdir, 2770)
elogfilename = elogdir+"/"+cpv_path+":"+time.strftime("%Y%m%d-%H%M%S", time.gmtime(time.time()))+".log"
elogfile = open(elogfilename, "w")