clamav-devel

[Prev] Thread [Next]  |  [Prev] Date [Next]

Re: [Clamav-devel] PATCH: Enhanced exclude / include support for clamscan Tomasz Kojm Thu May 21 08:00:27 2009

On Tue, 19 May 2009 15:49:23 +0100
Mark Allan <[EMAIL PROTECTED]> wrote:

> > On the one hand, you're right that were clamscan to have a command- 
> > line option to tell it to read a list of files on stdin, the logic I  
> > built into it could be implemented externally, either with home- 
> > grown scripts or with a separate utility bundled with clamav.  I  
> > certainly wouldn't be adverse to achieving my goal that way, where  
> > that functionality to be provided by clamscan.
> 
> I think this way would be much better than changing the interface, and  
> would have the added benefit of being significantly more powerful than  
> you probably realise.  If we could supply a list of files either on  
> stdin or within a single text file passed on the command line with eg.  
> a -f flag, users and admins could incorporate ClamAV into scripts/ 
> tasks and automated jobs a lot more easily than is currently  
> possible.  It would also eliminate another issue I've had to work  
> around which is the lack of case-insensitive regex matching - I could  
> perform my own matching and just supply filenames within a temporary  
> file or via stdin.

I added support for --file-list/-f in both clamscan and clamdscan in SVN.

Thanks,

-- 
   oo    .....         Tomasz Kojm <[EMAIL PROTECTED]>
  (\/)\.........         http://www.ClamAV.net/gpg/tkojm.gpg
     \..........._         0DCA5A08407D5288279DB43454822DC8985A444B
       //\   /\              Thu May 21 16:07:38 CEST 2009
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net