mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Remove hosts file location for Win95/98/ME from search
This commit is contained in:
parent
2bd5dd3a45
commit
d969fd00ca
1 changed files with 0 additions and 4 deletions
|
|
@ -1022,10 +1022,6 @@ static void etchosts_init(void) {
|
|||
// If it has a backslash it's C:\, otherwise something like C:\WINNT
|
||||
has_backslash = (windows_dir[strlen(windows_dir)-1] == '\\');
|
||||
|
||||
// Windows 95/98/Me:
|
||||
Snprintf(tpbuf, sizeof(tpbuf), "%s%shosts", windows_dir, has_backslash ? "" : "\\");
|
||||
parse_etchosts(tpbuf);
|
||||
|
||||
// Windows NT/2000/XP/2K3:
|
||||
Snprintf(tpbuf, sizeof(tpbuf), "%s%ssystem32\\drivers\\etc\\hosts", windows_dir, has_backslash ? "" : "\\");
|
||||
parse_etchosts(tpbuf);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue