mirror of
https://github.com/nmap/nmap.git
synced 2025-12-30 03:19:02 +00:00
Report system error message when fopen fails
This commit is contained in:
@@ -1288,7 +1288,7 @@ void parse_nmap_service_probe_file(AllProbes *AP, char *filename) {
|
||||
// We better start by opening the file
|
||||
fp = fopen(filename, "r");
|
||||
if (!fp)
|
||||
fatal("Failed to open nmap-service-probes file %s for reading", filename);
|
||||
pfatal("Failed to open nmap-service-probes file %s for reading", filename);
|
||||
|
||||
while(fgets(line, sizeof(line), fp)) {
|
||||
lineno++;
|
||||
|
||||
Reference in New Issue
Block a user