Re: [Clamav-users] ClamAV 0.94 build problem on Cygwin

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Török Edwin
Date:  
To: ClamAV users ML
Subject: Re: [Clamav-users] ClamAV 0.94 build problem on Cygwin
On 2008-09-03 22:54, René Berber wrote:
> Török Edwin wrote:
>
> [snip]
>
>> Try the same with 0.94rc1, it doesn't work with relative paths, it shows:
>> ../test/clam.exe: lstat() failed. ERROR
>>
>
> Nope, clamdscan doesn't work at all :
>
> $ clamdscan -V
> ClamAV 0.94rc1/8145/Wed Sep 3 01:00:57 2008
>
> $ clamdscan clam.exe
> clam.exe: lstat() failed. ERROR
>
> $ clamdscan ../test/clam.exe
> ../test/clam.exe: lstat() failed. ERROR
>
> Sorry I missed this, I just put it in operation with Exim and clamdmon
> and saw no problems. Of course Exim does not use clamdscan, it
> communicates directly to clamd, so clamdscan was never tested; I did
> test clamscan.
>
> The above behaviour usually means permission problems, clamd is running
> as user SYSTEM but not even in a SYSTEM owned directory (exim's spool)
> the test works...
>
>
>> I built 0.94rc1 myself on cygwin, and confirmed this.
>>
>> For some reason lstat() works with 0.94 ... after we dropped cygwin support.
>> Weird isn't it?
>>
>
> No, programming is deterministic, something changed in the code.
>


My guess is that one of the C_CYGWIN portions of code actually made
things worse, and caused clamdscan to fail.
But nobody noticed, until now, when we added unit tests.

Best regards,
--Edwin
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml