I forgot to mention I also tried editing /etc/clamav.conf:
ClamukoExcludePath /foo/bar/something with spaces/tmp
I also tried
ClamukoExcludePath "/foo/bar/something with spaces/tmp"
and
ClamukoExcludePath /foo/bar/something\ with\ spaces/tmp


/dev/idal

--- Chris de Vidal <[EMAIL PROTECTED]> wrote:
> I wrote a clamscan cron script like this:
> source /etc/clamav.excludes
> clamscan $EXCLUDES --recursive --quiet /
> 
> The clamav.excludes file looks like this:
> EXCLUDES="\
>     --exclude=/foo \
>     --exclude=/foo/bar \
>     --exclude=/foo/baz \
> "
> 
> This had been working _great_ until I needed to exclude directories with
> spaces:
> EXCLUDES="\
>     --exclude=/foo \
>     --exclude=/foo/bar \
>     --exclude=/foo/baz \
>     --exclude=/foo/bar/something with spaces/tmp \
>     --exclude=/foo/baz/something else with spaces/tmp \
> "
> 
> I get
> ERROR: Can't access file with spaces/tmp else with spaces/tmp /
> with spaces/tmp else with spaces/tmp /: No such file or directory
> 
> 
> This did not work (single quotes and double around the paths):
> EXCLUDES='\
>     --exclude="/foo/bar/something with spaces/tmp" \
> '
> 
> Nor did this (double quotes with escaped slashes):
> EXCLUDES="\
>     --exclude=/foo/bar/something\ with\ spaces/tmp \
> "
> 
> Echoing the command and pasting it back in with the mouse is just fine.
> 
> Ideas?
> 
> =====
> /dev/idal
> "GNU/Linux is free freedom" --Me
> 
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
> http://shopping.yahoo.com
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Clamav-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/clamav-users


__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to