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 | 73cbfed3d4d48efb22098fa62a0e2c9a9840deee (patch) | |
tree | f0ed5015522d2177bbfbe09f10ce1020b43f8e9f /app-antivirus/clamav/files | |
parent | Stable on amd64/x86 wrt bug #114893. (diff) | |
download | historical-73cbfed3d4d48efb22098fa62a0e2c9a9840deee.tar.gz historical-73cbfed3d4d48efb22098fa62a0e2c9a9840deee.tar.bz2 historical-73cbfed3d4d48efb22098fa62a0e2c9a9840deee.zip |
Chown freshclam.log to correct user. Patch by Jeremy Huddleston <eradicator at gentoo.org>.
Package-Manager: portage-2.1.2.3
Diffstat (limited to 'app-antivirus/clamav/files')
-rw-r--r-- | app-antivirus/clamav/files/clamd.rc | 5 |
1 files changed, 3 insertions, 2 deletions
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 |