diff options
author | Andrej Kacian <ticho@gentoo.org> | 2007-04-13 20:56:34 +0000 |
---|---|---|
committer | Andrej Kacian <ticho@gentoo.org> | 2007-04-13 20:56:34 +0000 |
commit | 3bee6d6962d7997952ddc9ed0df594c73f9faaa2 (patch) | |
tree | be1e04befbf12483f68c7b39d317cc1efa22a2f3 /app-antivirus | |
parent | Stable on amd64/x86 wrt bug #114893. (diff) | |
download | gentoo-2-3bee6d6962d7997952ddc9ed0df594c73f9faaa2.tar.gz gentoo-2-3bee6d6962d7997952ddc9ed0df594c73f9faaa2.tar.bz2 gentoo-2-3bee6d6962d7997952ddc9ed0df594c73f9faaa2.zip |
Chown freshclam.log to correct user. Patch by Jeremy Huddleston <eradicator at gentoo.org>.
(Portage version: 2.1.2.3)
Diffstat (limited to 'app-antivirus')
-rw-r--r-- | app-antivirus/clamav/ChangeLog | 6 | ||||
-rw-r--r-- | app-antivirus/clamav/files/clamd.rc | 5 |
2 files changed, 8 insertions, 3 deletions
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 <ticho@gentoo.org> files/clamd.rc: + Chown freshclam.log to correct user. Patch by Jeremy Huddleston <eradicator + at gentoo.org>. 13 Apr 2007; Jeroen Roovers <jer@gentoo.org> 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 |