[Snort-devel] Re: v1.7 syslog.c Win32 conversion error - Incorrect date parameters

Michael Davis mike at ...27...
Tue May 29 00:13:47 EDT 2001


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thanks for the catch, however, since spo_alert_syslog got updated I
removed this part of the code and when 1.8 is released this should
work properly.

Thanks for the bug report though!

Thanks,
Michael Davis
Chief Technical Officer
Data Nerds, LLC.
http://www.datanerds.net
- ----- Original Message ----- 
From: "Rich Adamson" <radamson at ...442...>
To: "Snort Developers Postings" <snort-devel at lists.sourceforge.net>;
"Snort Users Postings" <snort-users at lists.sourceforge.net>
Sent: Monday, May 28, 2001 12:52 PM
Subject: v1.7 syslog.c Win32 conversion error - Incorrect date
parameters


> Problem: The Win32 version of Snort does not properly insert the
> date into the syslog message. 
> 
> Resolution: The "%h %e %T" format string used in Unix systems is
> not supported in Win32 systems. The format string "%b %d %X"
> produces the correct results.  
> 
> 
> The following code should be changed within the syslog.c module for
> supporting the Win32 version of snort. (The change is based on v1.7
> source code.)
> 
> /* Win32 uses different formating characters then Unix */
> #ifdef WIN32
>         prlen = strftime(p, tbuf_left, "%b %d %X ",
> localtime(&now)); #else
>         prlen = strftime(p, tbuf_left, "%h %e %T ",
> localtime(&now)); #endif
>         DEC(); 
> 
> Rich
> 

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.8 for non-commercial use <http://www.pgp.com>

iQA/AwUBOxMh+viUqZ9dnoKsEQLBWACcDcAYyfO6hyfb/DcUoEgImwt/YlUAn2z/
xuEFbjCgwOPCgW8MyiOT6txa
=LkZq
-----END PGP SIGNATURE-----






More information about the Snort-devel mailing list