[Pkg-clamav-devel] [holger at layer-acht.org: piuparts-MBF: owned and unowned files after purge]
Stephen Gran
sgran at debian.org
Mon Oct 19 18:51:29 UTC 2009
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 |
| : :' : sgran at debian.org |
| `. `' Debian user, admin, and developer |
| `- http://www.debian.org |
-----------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-clamav-devel/attachments/20091019/87fbc824/attachment.pgp>
More information about the Pkg-clamav-devel
mailing list