Skip to content

Commit

Permalink
Rename nvd_cpe_matches to nvd-cpe-matches for name consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
a-h-abdelsalam committed Jan 16, 2025
1 parent 0376c4d commit 6733963
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,
"nvd_cpe_matches.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,
"nvd_cpe_matches.json",
"nvd-cpe-matches.json",
NULL);
fd = open(current_json_path, O_RDONLY);
}
Expand Down

0 comments on commit 6733963

Please sign in to comment.