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:
@@ -297,7 +297,7 @@ int init_payloads(void) {
|
||||
|
||||
fp = fopen(filename, "r");
|
||||
if (fp == NULL) {
|
||||
fprintf(stderr, "Can't open %s for reading.\n", filename);
|
||||
gh_perror("Can't open %s for reading.\n", filename);
|
||||
return -1;
|
||||
}
|
||||
/* Record where this data file was found. */
|
||||
|
||||
Reference in New Issue
Block a user