Skip to content

Commit

Permalink
[lib] Load *.cld files in addition to *.cvd files for virus scans
Browse files Browse the repository at this point in the history
clamav databases are either *.cvd files or *.cld files so make sure to
load both if we find them.

Fixes: #1155

Signed-off-by: David Cantrell <dcantrell@redhat.com>
  • Loading branch information
dcantrell committed Apr 25, 2023
1 parent 68c5ecc commit 66b0953
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/inspect_virus.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ bool inspect_virus(struct rpminspect *ri)
errno = 0;

while ((de = readdir(d)) != NULL) {
if (!strcmp(de->d_name, ".") || !strcmp(de->d_name, "..") || !strsuffix(de->d_name, ".cvd")) {
if (!strcmp(de->d_name, ".") || !strcmp(de->d_name, "..") || !strsuffix(de->d_name, ".cvd") || !strsuffix(de->d_name, ".cld")) {
continue;
}

Expand Down

0 comments on commit 66b0953

Please sign in to comment.