Török Edwin wrote:
> On 2009-02-28 12:18, Jose-Marcio Martins da Cruz wrote:
>> I see. Removing a '\n' when it's just before the '\0' may not be better 
>> but doesn't harm. I'm wrong ?
>>   
> 
> As I said, that is a problem if the filename ends with \n, if I remove
> the \n it will no longer find the file.

...

> Use nCOMMANDS, those work with both old, and new clamd.

It could be interesting to have a command which answers correctly, with 
a hint about the version or options available, no matter how it ends : 
with a '\n' or a '\0'. It could be VERSION, or PING (if you add some 
data after PONG), or a new command. This way, the clamd client could 
adapt itself to clamd behaviour, instead of guessing or using an 
obsolete command.

Either way, nCOMMANDS still remain interesting when using a telnet 
client for, e.g., debug purposes.

Regards,

JM


-- 
  ---------------------------------------------------------------
  Jose Marcio MARTINS DA CRUZ           http://j-chkmail.ensmp.fr
  Ecole des Mines de Paris
  60, bd Saint Michel                      75272 - PARIS CEDEX 06
  mailto:[email protected]
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml

Reply via email to