Skip to content

Commit

Permalink
Change: Rename the cpe match strings feed file
Browse files Browse the repository at this point in the history
  • Loading branch information
a-h-abdelsalam committed Jan 16, 2025
1 parent e155756 commit 0376c4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/manage_sql_secinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -4245,15 +4245,15 @@ update_scap_cpe_match_strings ()
inserts_t inserts, matches_inserts;

current_json_path = g_build_filename (GVM_SCAP_DATA_DIR,
"cpe_match_strings.json.gz",
"nvd_cpe_matches.json.gz",
NULL);
int fd = open(current_json_path, O_RDONLY);

if (fd < 0 && errno == ENOENT)
{
g_free (current_json_path);
current_json_path = g_build_filename (GVM_SCAP_DATA_DIR,
"cpe_match_strings.json",
"nvd_cpe_matches.json",
NULL);
fd = open(current_json_path, O_RDONLY);
}
Expand Down

0 comments on commit 0376c4d

Please sign in to comment.