From 29a6f79162705e8c0180ec9b49adc517807f9810 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 21 Jun 2006 02:04:19 +0000 Subject: [PATCH] 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 --- pym/elog_modules/mod_save.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") -- 2.26.2