From c21d76f64a7c4f681e36427049d37a490a9a23dc Mon Sep 17 00:00:00 2001 From: Martin Helmich Date: Wed, 6 Oct 2021 14:22:45 +0200 Subject: [PATCH] ClamAV scan should be recursive (#18) --- pkg/engine/clamav_exec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/engine/clamav_exec.go b/pkg/engine/clamav_exec.go index 4e6bb2a..d87e066 100644 --- a/pkg/engine/clamav_exec.go +++ b/pkg/engine/clamav_exec.go @@ -21,7 +21,7 @@ func init() { func (c *clamAVEngine) Execute(ctx context.Context, _ *avv1beta1.VirusScan, scanDirs []string) (*ScanReport, error) { stdout := bytes.Buffer{} - args := []string{"-i", "--no-summary"} + args := []string{"-i", "--no-summary", "--recursive"} args = append(args, scanDirs...) tee := io.MultiWriter(&stdout, os.Stdout)