- Package:
- squidguard
- Source:
- squidguard
- Description:
- filter and redirector plugin for Squid
- Submitter:
- Geoff Crompton
- Date:
- 2015-01-27 14:33:10 UTC
- Severity:
- normal
On my system I had squid, squid3, srg and squidguard. squid had been installed due to a recommends dependancy by srg. When I purged squid the logrotation for squidguard started to complain. By default squidGuard logs to /var/log/squid, and /var/lib/dpkg/info/squidguard.list mentions /var/log/squid. The /var/lib/dpkg/info/squid.postrm script does 'rm -rf /var/log/squid'. I don't think the squid package should be removing directories that are used by other packages. I've attached a trivial patch, to change the rm command to remove the logfiles rather than the directory.
Since /var/log/squid/ is a private directory added by the squid package for its own use I don't think other packages should be requiring its existence without a clear dependency on the squid package which creates it. squidguard appears to be violating the FHS standard by not using /var/log/squidguard/ for its own logs. AYJ
reassign 636287 squidguard retitle 636287 squidguard should depend on squid to guarantee /var/log/squid existence tags 636287 -patch thanks I’m re-assigning this (ancient) bug to squidguard following Amos advice. Regards, L