freebsd-ports/security/snort-rep/files/patch-snort-rep
Stefan Walter 0429f9a4a4 - Fix a call of Perl's timelocal() for timestamps with seconds out of [0..59].
[1]
- Convert Makefile header to new style.

PR:		168926 [1]
Submitted by:	Filip Valder <filip@valder.cz> [1]
2013-05-01 09:02:50 +00:00

11 lines
534 B
Text

--- snort-rep.orig 2013-05-01 10:38:51.000000000 +0200
+++ snort-rep 2013-05-01 10:39:27.000000000 +0200
@@ -1081,7 +1081,7 @@
my $year = defined $3 ? $3 : (localtime(time))[5]+1900;
# convert to unix time
- $a{timestamp} = timelocal($6, $5, $4, $2, $1 - 1, $year);
+ $a{timestamp} = timelocal(int($6), $5, $4, $2, $1 - 1, $year);
$start_time = $a{timestamp}
if not defined $start_time or $a{timestamp} < $start_time;
$end_time = $a{timestamp} if not defined $end_time or $a{timestamp} > $end_time;