Hi

The problem of the undeleted tmp.xxxxx directory is caused by the use of   --on-update-execute=EXIT_1

I have examined freshclam.c and it appears to me that on update freshclam exits with status 1 via a  call to execute().

The call to execute() precedes  code which should remove the temp dir.


Thanks

On 30/09/2020 09:32, G.W. Haywood via clamav-users wrote:
Hi there,

On Tue, 29 Sep 2020, Paul via clamav-users wrote:

I run "/usr/bin/freshclam --quiet --on-update-execute=EXIT_1  " hourly and find that the temporary directory is emptied but not removed from /var/lib/clamav

when freshclam picks up the daily updates.  This appears to have been occurring with 102 and latest 103 releases.

Am I missing something ?

More information please.  For example what is your operating system,
how was ClamAV installed on it, how are you running the command, which
user ID is executing freshclam, why do you want freshclam to return an
error code of 1 on a successful update (and have you tried running the
command without that (and why do you run the command hourly to get an
update which occurs only daily)), have you asked freshclam not to be
--quiet, have you configured freshclam to write in the log and have
you looked there, have you asked freshclam for more information (using
-v and/or --debug), can you let us see a copy of your freshclam.conf,
and any more stuff like that that you can think of.


_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml

Reply via email to