On 2003-12-03, Odhiambo Washington wrote:

>Ok. Something  like this will help...
>
>find / -name "clamav.conf -exec cp /etc/ {} \;

Even if its syntax would be correct, it wouldn't work as expected by
you. ;)

>find / -type f -name "clamav.conf" | xargs cp /etc/clamav.conf

You end up with a broken clamav setup if some your user placed a hostile
clamav.conf file somewhere in a filesystem, and for some reason your
find visits that place as the last one.

I wouldn't recommend your solution, especially over reading docs.

s.

-- 
(0>  Jakub Jankowski  [url]: s.atn.pl  "Nawet w Krainie Czarow
//\   [EMAIL PROTECTED]   [rlu]: 174516     latwiej jest spotkac
V_/_  [EMAIL PROTECTED]   [ekg]: 921514     Babe Jage niz Alicje"
Fingerprint: FCBF F03D 9ADB B768 8B92 BB52 0341 9037 A875 942D


-------------------------------------------------------
This SF.net email is sponsored by OSDN's Audience Survey.
Help shape OSDN's sites and tell us what you think. Take this
five minute survey and you could win a $250 Gift Certificate.
http://www.wrgsurveys.com/2003/osdntech03.php?site=8
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to