[Pkg-clamav-devel] [PATCH] [fix_clamdscan_print_excluded] Disables printing of excluded files when invoking clamdscan with the option '--infected'
Sebastian Andrzej Siewior
sebastian at breakpoint.cc
Sun Jul 12 20:51:51 UTC 2015
Could you please add a little bit more of a changelog? Including:
- what is broken
- who broke it if known
- is it specific to Debian (due to the patches we add) or also related to
upstream
Currently I would assume it is a general problem.
On Sun, Jul 12, 2015 at 05:15:34PM +0200, Robert Rottscholl wrote:
> ---
> clamdscan/proto.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/clamdscan/proto.c b/clamdscan/proto.c
> index ccf7e1c..e3f2ed5 100644
> --- a/clamdscan/proto.c
> +++ b/clamdscan/proto.c
> @@ -224,7 +224,8 @@ static int chkpath(const char *path)
> if((opt = optget(clamdopts, "ExcludePath"))->enabled) {
> while(opt) {
> if(match_regex(path, opt->strarg) == 1) {
> - logg("~%s: Excluded\n", path);
> + if (printinfected != 1)
> + logg("~%s: Excluded\n", path);
> return 1;
> }
> opt = opt->nextarg;
> --
> 1.7.10.4
>
More information about the Pkg-clamav-devel
mailing list