Re: [Clamav-users] DEBUG LOG (was: Calling andrey@cherezov.koenig.su :)

2004-02-11 Thread Nigel Horne
On Wednesday 11 Feb 2004 7:03 am, Andrey Cherezov wrote: > #else > (void)mktemp(filename); > fd = open(filename, O_WRONLY|O_CREAT|O_EXCL|O_TRUNC|O_BINARY, 0600); > #endif Thanks. Will look into this. -Nigel -- Nigel Horne. Arranger, Composer, Typesetter. NJH Music, Barnsley, UK. I

RE: [Clamav-users] DEBUG LOG (was: Calling andrey@cherezov.koenig.su :)

2004-02-10 Thread Andrey Cherezov
> Do not know, why this happens (13 :). Just commented out > this "if (bread" fragment, recompiled, and now this works > for all tested Worm.SCO.A infected files on this PC. When I added "|O_BINARY" to this code in mbox.c this 13/14 magic_buffer problem also fix. #else (void)mktemp(filena

RE: [Clamav-users] DEBUG LOG (was: Calling andrey@cherezov.koenig.su :)

2004-02-10 Thread Andrey Cherezov
Nigel, I found difference in these 2 cases. On the second PC (WinXP with installed Cygwin) this code bread = read(desc, magic, MAGIC_BUFFER_SIZE); returns bread=13 instead of 14 (#define MAGIC_BUFFER_SIZE 14) and later failed to pass this check: if (bread != MAGIC_BUFFER_SIZE) {

RE: [Clamav-users] DEBUG LOG (was: Calling andrey@cherezov.koenig.su :)

2004-02-10 Thread Andrey Cherezov
Dear Nigel, Here is 2 debug logs from clamd from 2 different PC. 1st - Windows 2003 Server w/o Cygwin installed: ... LibClamAV debug: messageFindArgument: compare 8 bytes of filename with filename="text.zip" LibClamAV debug: blobSetFilename: text.zip LibClamAV debug: Mixed message part 2 is of ty