mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Report system error message when fopen fails
This commit is contained in:
parent
f6fbb29481
commit
ef2bafb09c
9 changed files with 13 additions and 13 deletions
|
|
@ -158,7 +158,7 @@ static int nmap_services_init() {
|
|||
|
||||
fp = fopen(filename, "r");
|
||||
if (!fp) {
|
||||
fatal("Unable to open %s for reading service information", filename);
|
||||
pfatal("Unable to open %s for reading service information", filename);
|
||||
}
|
||||
/* Record where this data file was found. */
|
||||
o.loaded_data_files["nmap-services"] = filename;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue