On Sat, Jul 30, 2005 at 04:25:24PM +0200, q# wrote:
> Hi,
> 
> Here are diffs which add description of signals that user can send to
> freshclam and clamd. One of those patches moves logg() in freshclam.c
> little lower, so that logs are unified, no matter is user running
> daemonized freshclam, on foreground or sometimes even both. I've also
> commented out "--foreground" option from freshclam's help(). Changes
> where made against snapshot 20050730. Native speaker should check my
> diffs to man pages.
> 
> I've also send some time ago changes to libmspack included with
> clamav[1].
> 
> References
>  1. http://lurker.clamav.net/message/20050721.092025.dd20bcda.en.html

In link above I've noted that tk introduce changes that should help
extract some cabs, but for me this doesn't work. After reverting 8bits
as in attached patch, everyting is working for me, and problematic
cab-file is extracting correctly.
--- libclamav/mspack/mszipd.c.orig      Wed Jul 20 03:55:58 2005
+++ libclamav/mspack/mszipd.c   Sat Jul 30 23:17:33 2005
@@ -95,7 +95,7 @@ static const unsigned short bit_mask[17]
 
 static int zipd_read_input(struct mszipd_stream *zip) {
   int read = zip->sys->read(zip->input, &zip->inbuf[0], (int)zip->inbuf_size);
-  if (read <= 0) return zip->error = MSPACK_ERR_READ;
+  if (read < 0) return zip->error = MSPACK_ERR_READ;
   zip->i_ptr = &zip->inbuf[0];
   zip->i_end = &zip->inbuf[read];
 
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html

Reply via email to