This one time, at band camp, Michael Tautschnig said: > Hi fellow developers, > > clamav is affected by this problem with the following files: > > 0m26.4s ERROR: FAIL: Package purging left files on system: > /etc/clamav owned by: clamav-base > /etc/clamav/clamd.conf not owned > /var/lib/clamav owned by: clamav-base > /var/lib/clamav/daily.cvd not owned > /var/lib/clamav/main.cvd not owned > > Maybe I'll find the time to investigate this more detail, just don't know for > sure and wanted to share what I had digged up anyway.
The relevant section of the postrm:
case "$1" in
purge)
if [ -x "/usr/bin/ucf" ]; then
UCFLIST="/etc/cron.d/clamav-daemon \
/etc/clamav.conf \
/etc/clamav/clamav.conf \
/etc/clamav/clamd.conf \
/var/lib/clamav/clamav.conf.*.md5"
for i in $UCFLIST; do
ucf -p $i || true
if [ -e $i ]; then
rm -f $i || true
fi
done
fi
rm -f /var/log/clamav/clamav.log* /etc/clamav/clamav.conf.dpkg-old
/etc/clamav/clamd.conf.dpkg-old /etc/clamav/clamd.conf.ucf-old
if [ -x "/usr/sbin/userdel" ]; then
userdel clamav || true
fi
if [ -x "/usr/sbin/groupdel" ]; then
groupdel clamav || true
fi
rm -f /var/lib/clamav/*.md5sum || true
for dir in /etc/clamav/ /var/log/clamav /var/lib/clamav/; do
if [ -d "$dir" ]; then
rmdir "$dir" --ignore-fail-on-non-empty || true
fi
done
;;
So I see why it leaves /var/lib/clamav/daily.cvd and
/var/lib/clamav/main.cvd - that's a bug. I don't understand why it
leaves /etc/clamav/clamd.conf, since it's in $UCFLIST and those files
should be rm'ed.
Hmmm.
--
-----------------------------------------------------------------
| ,''`. Stephen Gran |
| : :' : [email protected] |
| `. `' Debian user, admin, and developer |
| `- http://www.debian.org |
-----------------------------------------------------------------
signature.asc
Description: Digital signature
_______________________________________________ Pkg-clamav-devel mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/pkg-clamav-devel
