From 3bee6d6962d7997952ddc9ed0df594c73f9faaa2 Mon Sep 17 00:00:00 2001 From: Andrej Kacian Date: Fri, 13 Apr 2007 20:56:34 +0000 Subject: Chown freshclam.log to correct user. Patch by Jeremy Huddleston . (Portage version: 2.1.2.3) --- app-antivirus/clamav/ChangeLog | 6 +++++- app-antivirus/clamav/files/clamd.rc | 5 +++-- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'app-antivirus') diff --git a/app-antivirus/clamav/ChangeLog b/app-antivirus/clamav/ChangeLog index 9b3316851640..4b9b430ec836 100644 --- a/app-antivirus/clamav/ChangeLog +++ b/app-antivirus/clamav/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for app-antivirus/clamav # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/ChangeLog,v 1.227 2007/04/13 19:23:59 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/ChangeLog,v 1.228 2007/04/13 20:56:34 ticho Exp $ + + 13 Apr 2007; Andrej Kacian files/clamd.rc: + Chown freshclam.log to correct user. Patch by Jeremy Huddleston . 13 Apr 2007; Jeroen Roovers clamav-0.90.2.ebuild: Stable for HPPA (bug #174375). diff --git a/app-antivirus/clamav/files/clamd.rc b/app-antivirus/clamav/files/clamd.rc index 32efa6ae1e94..265b909d4c83 100644 --- a/app-antivirus/clamav/files/clamd.rc +++ b/app-antivirus/clamav/files/clamd.rc @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/files/clamd.rc,v 1.14 2007/04/10 20:13:39 ticho Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/files/clamd.rc,v 1.15 2007/04/13 20:56:34 ticho Exp $ opts="logfix" @@ -128,11 +128,12 @@ logfix() { # fix freshclam log permissions # (might be clobbered by logrotate or something) logfile=`awk '$1 == "UpdateLogFile" { print $2 }' /etc/freshclam.conf` + local freshclam_user=`awk '$1 == "DatabaseOwner" { print $2 }' /etc/freshclam.conf` if [ -n "${logfile}" -a -n "${clamav_user}" ]; then if [ ! -f "${logfile}" ]; then touch ${logfile} fi - chown ${clamav_user} ${logfile} + chown ${freshclam_user} ${logfile} chmod 640 ${logfile} fi fi -- cgit v1.2.3-65-gdbad