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:
2
nmap.cc
2
nmap.cc
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user