Skip to content

Commit d969fd0

Browse files
committed
Remove hosts file location for Win95/98/ME from search
1 parent 2bd5dd3 commit d969fd0

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

nmap_dns.cc

-4
Original file line numberDiff line numberDiff line change
@@ -1022,10 +1022,6 @@ static void etchosts_init(void) {
10221022
// If it has a backslash it's C:\, otherwise something like C:\WINNT
10231023
has_backslash = (windows_dir[strlen(windows_dir)-1] == '\\');
10241024

1025-
// Windows 95/98/Me:
1026-
Snprintf(tpbuf, sizeof(tpbuf), "%s%shosts", windows_dir, has_backslash ? "" : "\\");
1027-
parse_etchosts(tpbuf);
1028-
10291025
// Windows NT/2000/XP/2K3:
10301026
Snprintf(tpbuf, sizeof(tpbuf), "%s%ssystem32\\drivers\\etc\\hosts", windows_dir, has_backslash ? "" : "\\");
10311027
parse_etchosts(tpbuf);

0 commit comments

Comments
 (0)