- 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]
This commit is contained in:
parent
572fcf274b
commit
0429f9a4a4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=317005
2 changed files with 13 additions and 5 deletions
|
@ -1,12 +1,9 @@
|
|||
# New ports collection makefile for: snort-rep
|
||||
# Date created: Jul 19, 2001
|
||||
# Whom: Mark Pulford <mark@kyne.com.au>
|
||||
#
|
||||
# Created by: Mark Pulford <mark@kyne.com.au>
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= snort-rep
|
||||
PORTVERSION= 1.10
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= http://david.schweikert.ch/software/snort-rep/pub/
|
||||
|
||||
|
|
11
security/snort-rep/files/patch-snort-rep
Normal file
11
security/snort-rep/files/patch-snort-rep
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- 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;
|
Loading…
Reference in a new issue