From d969fd00ca633020b7bd802bfa91a591a5d807be Mon Sep 17 00:00:00 2001 From: dmiller Date: Tue, 28 Jun 2022 17:40:30 +0000 Subject: [PATCH] Remove hosts file location for Win95/98/ME from search --- nmap_dns.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/nmap_dns.cc b/nmap_dns.cc index 6a4623fd4..c01b9d72d 100644 --- a/nmap_dns.cc +++ b/nmap_dns.cc @@ -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);