In portage.spawn(), apply group write permission to the log file.
authorZac Medico <zmedico@gentoo.org>
Fri, 29 Jan 2010 17:53:39 +0000 (17:53 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 29 Jan 2010 17:53:39 +0000 (17:53 -0000)
svn path=/main/trunk/; revision=15218

pym/portage/__init__.py

index 233bf7ed17360fcb3869c389af3d734cbc2e4b5b..0feabf411ea8c67633c5991829fc8a1e8d7b9b9c 100644 (file)
@@ -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]