From cd552a55efc812a2bc9b3302125146f9a7171e66 Mon Sep 17 00:00:00 2001 From: Deluan Date: Wed, 19 Mar 2025 22:15:20 -0400 Subject: [PATCH] fix(scanner): pass datafolder and cachefolder to scanner subprocess Fix #3831 Signed-off-by: Deluan --- scanner/external.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scanner/external.go b/scanner/external.go index b00c67cb9..c4a29efa3 100644 --- a/scanner/external.go +++ b/scanner/external.go @@ -33,6 +33,8 @@ func (s *scannerExternal) scanAll(ctx context.Context, fullScan bool, progress c cmd := exec.CommandContext(ctx, exe, "scan", "--nobanner", "--subprocess", "--configfile", conf.Server.ConfigFile, + "--datafolder", conf.Server.DataFolder, + "--cachefolder", conf.Server.CacheFolder, If(fullScan, "--full", "")) in, out := io.Pipe()