mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Report system error message when fopen fails
This commit is contained in:
@@ -100,7 +100,7 @@ static void mac_prefix_init() {
|
||||
|
||||
fp = fopen(filename, "r");
|
||||
if (!fp) {
|
||||
error("Unable to open %s. Ethernet vendor correlation will not be performed ", filename);
|
||||
gh_perror("Unable to open %s. Ethernet vendor correlation will not be performed ", filename);
|
||||
return;
|
||||
}
|
||||
/* Record where this data file was found. */
|
||||
|
||||
Reference in New Issue
Block a user