purging all clamav packages doesn't remove /var/run/clamav directory

Bug #829945 reported by Imre Gergely on 2011-08-20
This bug affects 1 person
Affects Status Importance Assigned to Milestone
clamav (Ubuntu)

Bug Description

When removing clamav with purge (like apt-get purge libclamav6 clamav-base clamav clamav-daemon clamav-freshclam), everything gets removed except /var/run/clamav, even if it's empty.
Note: fix bug #829944 first.

Related branches

Imre Gergely (cemc) wrote :

Attached patch might fix this, tested in Oneiric and it works (after manually removing freshclam.pid from /var/run/clamav).

description: updated
summary: - purging all clamav packages doesn't remove /var/run/clamav/*
+ purging all clamav packages doesn't remove /var/run/clamav directory
tags: added: patch
Dave Walker (davewalker) on 2011-08-22
Changed in clamav (Ubuntu):
importance: Undecided → Medium
Michael Tautschnig (mt-debian) wrote :

This removal attempt (using rmdir) should be done in all postrm's. I'll include the thus completed version of Imre's patch in the Debian package.


Chuck Short (zulcss) wrote :

Can you forward this to debian please?

Changed in clamav (Ubuntu):
status: New → Triaged
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package clamav - 0.97.5+dfsg-2ubuntu1

clamav (0.97.5+dfsg-2ubuntu1) quantal; urgency=low

  * Merge from Debian Unstable. Remaining Ubuntu changes:
    - Drop build-dep on electric-fence (in Universe)
    - Add apparmor profiles for clamd and freshclam along with maintainer
      script changes

clamav (0.97.5+dfsg-2) unstable; urgency=medium

  * Medium urgency due to security fixes
  * Update debian/clamav-base.postinst.in to test for the existence of the
    actual .cvd files before trying to install them and not just the directory
    they should be in (Closes: #678019), (LP: #1015337)
  * Remove /var/run/clamav on purge (LP: #829945)
    - Thanks to Imre Gergely for the patch
  * Add call to /sbin/restorecon in debian/common_functions make_directory to
    to label the /run directory for SE Linux (Closes: #677686)
    - Thanks to Russell Coker for the patch
  * Remove obsolete reference to clamav-data package in clamav-daemon init log
    failure message
 -- Scott Kitterman <email address hidden> Tue, 19 Jun 2012 21:39:28 -0400

Changed in clamav (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers