Skip to content

Commit

Permalink
[fix] Load both *.cld and *.cvd virus database files, if they exist
Browse files Browse the repository at this point in the history
This just fixes a logical error that was accidentally introduced
in 66b0953.

Signed-off-by: Michal Srb <michal@redhat.com>
  • Loading branch information
msrb authored and dcantrell committed Apr 26, 2023
1 parent 3d80445 commit d47fcf2
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") || !strsuffix(de->d_name, ".cld")) {
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 d47fcf2

Please sign in to comment.