summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-01-29 17:53:39 +0000
committerZac Medico <zmedico@gentoo.org>2010-01-29 17:53:39 +0000
commitc76d0fc446a396a73db71bae073b3e8e9cf9cf50 (patch)
tree70bb66ff98430fea399703d077ad57725c0a594c
parent297d7590ddea0f71cbe2e94ac95a56ead4df478e (diff)
downloadportage-c76d0fc446a396a73db71bae073b3e8e9cf9cf50.tar.gz
portage-c76d0fc446a396a73db71bae073b3e8e9cf9cf50.tar.bz2
portage-c76d0fc446a396a73db71bae073b3e8e9cf9cf50.zip
In portage.spawn(), apply group write permission to the log file.
svn path=/main/trunk/; revision=15218
-rw-r--r--pym/portage/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index 233bf7ed1..0feabf411 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -4158,6 +4158,8 @@ def spawn(mystring, mysettings, debug=0, free=0, droppriv=0, sesandbox=0, fakero
if logfile:
log_file = open(_unicode_encode(logfile), mode='ab')
+ apply_secpass_permissions(logfile,
+ uid=portage_uid, gid=portage_gid, mode=0o664)
stdout_file = os.fdopen(os.dup(fd_pipes_orig[1]), 'wb')
master_file = os.fdopen(master_fd, 'rb')
iwtd = [master_file]