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

Frank Knobbe fknobbe at ...337...
Tue Oct 15 15:43:04 EDT 2002


Have you actually tried to compile this? ;)

#iddef should be #ifdef. But even with that in place, you are changing
the logging for anything but Windows. In other words, it should read
#ifndef.

Regards,
Frank


On Tue, 2002-10-15 at 14:12, Ian Macdonald wrote:
> 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);
> 
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Snort-devel mailing list
> Snort-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/snort-devel
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 307 bytes
Desc: This is a digitally signed message part
URL: <https://lists.snort.org/pipermail/snort-devel/attachments/20021015/616fc6fb/attachment.sig>


More information about the Snort-devel mailing list