1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-30 19:39:07 +00:00

Report system error message when fopen fails

This commit is contained in:
dmiller
2020-12-28 17:51:16 +00:00
parent f6fbb29481
commit ef2bafb09c
9 changed files with 13 additions and 13 deletions

View File

@@ -966,7 +966,7 @@ FingerPrintDB *parse_fingerprint_file(const char *fname) {
fp = fopen(fname, "r");
if (!fp)
fatal("Unable to open Nmap fingerprint file: %s", fname);
pfatal("Unable to open Nmap fingerprint file: %s", fname);
top:
while (fgets(line, sizeof(line), fp)) {