mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 22:21:29 +00:00
Report system error message when fopen fails
This commit is contained in:
@@ -93,7 +93,7 @@ static int nmap_protocols_init() {
|
||||
|
||||
fp = fopen(filename, "r");
|
||||
if (!fp) {
|
||||
fatal("Unable to open %s for reading protocol information", filename);
|
||||
pfatal("Unable to open %s for reading protocol information", filename);
|
||||
}
|
||||
/* Record where this data file was found. */
|
||||
o.loaded_data_files["nmap-protocols"] = filename;
|
||||
|
||||
Reference in New Issue
Block a user