Bug#525358: Better testcase, --exclude-dir only works with a REGEX.

2009-11-22 Thread Michael Tautschnig
 Thanks for the advice.  Just changing the option name, but using the old 
 pattern syntax, didn't work in all cases, though.
 
 I created a better testcase:
 # mkdir -p /tmp/clamtest/test1 /tmp/clamtest/kde-htest
 # mkdir -p /clamtest/test1
 # touch /tmp/clamtest/test1/clamtest.test1.sample.file
 # cp /tmp/kde-htest/konqueror-crash-Gpj9Ca.log /tmp/clamtest/kde-htest/
 # touch /clamtest/test1/clamtest.test1.sample.file
 # touch /clamtest/test1/junk
 # clamscan -r --exclude-dir=//clamtest/ /tmp /clamtest
 /tmp/clamtest/tmp.clamtest.sample.file: Empty file
 /tmp/clamtest/kde-htest/konqueror-crash-Gpj9Ca.log: OK
 /tmp/clamtest/tmp/temp.clamtest.tmp.sample.file: OK
 /tmp/.X0-lock: OK
 /clamtest/test1/clamtest.test1.sample.file: Empty file
 /clamtest/test1/junk: Empty file
 
 So just changing from --exclude to --exclude-dir, using the original syntax 
 for PATT of // to indicate a root directory doesn't work.
 
 Later Internet search on --exclude-dir turned up 
 http://www.linuxforums.org/forum/redhat-fedora-linux-help/56093-clam-av.html
 which shows the Fedora version of   clamscan --help   saying that the syntax 
 is --exclude-dir=REGEX
 
 I tested this and found that it works:
 # clamscan -r --exclude-dir=^/clamtest/ /tmp /clamtest
 /tmp/clamtest/tmp.clamtest.sample.file: Empty file
 /tmp/clamtest/kde-htest/konqueror-crash-Gpj9Ca.log: OK
 /tmp/clamtest/tmp/temp.clamtest.tmp.sample.file: OK
 /tmp/.X0-lock: OK
 /clamtest: Excluded
 
 So sometime between clamav 0.92.1 and 0.94.dfsg.2-1lenny2, the syntax for 
 --exclude-dir=PATT (and related options) changed to require PATT to be a 
 regular expression.
 
 Is there any chance of getting the man page and  --help  output changed to 
 say REGEX instead of PATT?
 

I'll let upstream know about this. In fact, the --help output depends on some
nowadays unused preprocessor option and thus does not reflect the actual
behavior. It's using regular expressions in all cases now.

Best,
Michael



pgpZeUOGx6zN4.pgp
Description: PGP signature


Bug#525358: Better testcase, --exclude-dir only works with a REGEX.

2009-11-22 Thread Douglas M. Wooster
On Sun November 22 2009, Michael Tautschnig Michael Tautschnig 
m...@debian.org wrote:

 I'll let upstream know about this. In fact, the --help output
 depends on some nowadays unused preprocessor option and thus does
 not reflect the actual behavior. It's using regular expressions in
 all cases now.

Thank you very much, Michael.
Douglas

-- 
Permission is granted to use the email address(es), postal
addresses, telephone numbers, Web site URLs, names, account
numbers, userids, passwords, and other identifying or contact
information contained in, or attached to, this email, for the
purposes of responding to queries, providing support, or
fulfilling sales orders contained in this email or its
attachment(s) (if any).  Trading, selling, otherwise publishing,
or making available to employees or third parties, any
identifying information contained in this email or its
attachment(s) (if any) for other purposes, including use in
advertising, is forbidden.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#525358: Better testcase, --exclude-dir only works with a REGEX.

2009-11-04 Thread The Count
Thanks for the advice.  Just changing the option name, but using the old 
pattern syntax, didn't work in all cases, though.

I created a better testcase:
# mkdir -p /tmp/clamtest/test1 /tmp/clamtest/kde-htest
# mkdir -p /clamtest/test1
# touch /tmp/clamtest/test1/clamtest.test1.sample.file
# cp /tmp/kde-htest/konqueror-crash-Gpj9Ca.log /tmp/clamtest/kde-htest/
# touch /clamtest/test1/clamtest.test1.sample.file
# touch /clamtest/test1/junk
# clamscan -r --exclude-dir=//clamtest/ /tmp /clamtest
/tmp/clamtest/tmp.clamtest.sample.file: Empty file
/tmp/clamtest/kde-htest/konqueror-crash-Gpj9Ca.log: OK
/tmp/clamtest/tmp/temp.clamtest.tmp.sample.file: OK
/tmp/.X0-lock: OK
/clamtest/test1/clamtest.test1.sample.file: Empty file
/clamtest/test1/junk: Empty file

So just changing from --exclude to --exclude-dir, using the original syntax for 
PATT of // to indicate a root directory doesn't work.

Later Internet search on --exclude-dir turned up 
http://www.linuxforums.org/forum/redhat-fedora-linux-help/56093-clam-av.html
which shows the Fedora version of   clamscan --help   saying that the syntax is 
--exclude-dir=REGEX

I tested this and found that it works:
# clamscan -r --exclude-dir=^/clamtest/ /tmp /clamtest
/tmp/clamtest/tmp.clamtest.sample.file: Empty file
/tmp/clamtest/kde-htest/konqueror-crash-Gpj9Ca.log: OK
/tmp/clamtest/tmp/temp.clamtest.tmp.sample.file: OK
/tmp/.X0-lock: OK
/clamtest: Excluded

So sometime between clamav 0.92.1 and 0.94.dfsg.2-1lenny2, the syntax for 
--exclude-dir=PATT (and related options) changed to require PATT to be a 
regular expression.

Is there any chance of getting the man page and  --help  output changed to say 
REGEX instead of PATT?


  



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org