Skip to content

Commit 66b3d09

Browse files
authored
Explicitly check for "mal" binary name when ignoring self (#466)
Signed-off-by: egibs <20933572+egibs@users.noreply.github.com>
1 parent 5554211 commit 66b3d09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/report/report.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ func Generate(ctx context.Context, path string, mrs yara.MatchRules, c malconten
477477
// TODO: If we match multiple rules within a single namespace, merge matchstrings
478478
}
479479

480-
if all(ignoreSelf, fr.IsMalcontent, ignoreMalcontent, filepath.Base(path) == NAME) {
480+
if all(ignoreSelf, fr.IsMalcontent, ignoreMalcontent, filepath.Base(path) == "mal") {
481481
return malcontent.FileReport{}, nil
482482
}
483483

0 commit comments

Comments
 (0)