From: Zac Medico Date: Wed, 21 Jun 2006 02:04:19 +0000 (-0000) Subject: Toggle the setgid bit on $PORT_LOGDIR\elog\ for bug #136278. This patch is from... X-Git-Tag: v2.1-r1~20 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=29a6f79162705e8c0180ec9b49adc517807f9810;p=portage.git Toggle the setgid bit on $PORT_LOGDIR\elog\ for bug #136278. This patch is from trunk r3502:3503. svn path=/main/branches/2.1/; revision=3559 --- diff --git a/pym/elog_modules/mod_save.py b/pym/elog_modules/mod_save.py index 6c16c2041..4e1cd2cf8 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, 02770) elogfilename = elogdir+"/"+cpv_path+":"+time.strftime("%Y%m%d-%H%M%S", time.gmtime(time.time()))+".log" elogfile = open(elogfilename, "w")