1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-16 04:39:03 +00:00

Improves error message. Closes #1056

This commit is contained in:
paulino
2017-11-23 23:47:15 +00:00
parent 6b655200c6
commit e66740a16d

View File

@@ -2338,7 +2338,7 @@ int gather_logfile_resumption_state(char *fname, int *myargc, char ***myargv) {
/* We mmap it read/write since we will change the last char to a newline if it is not already */
filestr = mmapfile(fname, &filelen, O_RDWR);
if (!filestr) {
fatal("Could not mmap() %s read/write", fname);
fatal("Could not mmap() %s file. Make sure you have enough rights and the file really exists.", fname);
}
if (filelen < 20) {