Interesting find. I guess this would be a bug. Additional context for anyone curious: --on-update-execute=EXIT_1 is a freshclam option to change the exit code from 0 to 1 so a user can differentiate between a successful run without an update and one with an update. It is a suggested use case in the freshclam manpage: https://github.com/Cisco-Talos/clamav-devel/blob/dev/0.104/docs/man/freshclam.1.in#L98
Care to file a bug report? https://bugzilla.clamav.net/enter_bug.cgi?product=ClamAV -MIcah -----Original Message----- From: clamav-users <clamav-users-boun...@lists.clamav.net> On Behalf Of Paul via clamav-users Sent: Thursday, October 1, 2020 7:42 AM To: clamav-users@lists.clamav.net Cc: Paul <p...@netpresto.co.uk> Subject: Re: [clamav-users] Freshclam temp dir 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 _______________________________________________ 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