[Snort-devel] Patch for fixing fully qualified log path in portscan2 for Win32

Ian Macdonald secsnortdev at ...1490...
Tue Oct 15 12:13:03 EDT 2002


Patch for fixing fully qualified log path in portscan2 for Win32

diff -Naur snort-1.9.0.orig/src/preprocessors/spp_portscan2.c
snort-1.9.0/src/pr
eprocessors/spp_portscan2.c
--- snort-1.9.0.orig/src/preprocessors/spp_portscan2.c  Wed Sep 25 15:46:58
2002
+++ snort-1.9.0/src/preprocessors/spp_portscan2.c       Tue Oct 15 15:08:05
2002
@@ -307,8 +307,13 @@
             {
                 if(isascii((int)(stoks[1][0])))
                 {
+#iddef WIN32
+                    if (stoks[1][1] == ':')
+                        strncpy (logpath, stoks[1], STD_BUF);
+#else
                     if (stoks[1][0] == '/')
                         strncpy (logpath, stoks[1], STD_BUF);
+#endif
                     else
                     {
                         strncpy(logpath, pv.log_dir, STD_BUF);






More information about the Snort-devel mailing list