* Propagated fix for asctime pattern from 0.7.8 release (closes: #421848)

debian-releases/etch debian/0.7.5-2etch1+pre1
Yaroslav Halchenko 2007-05-02 02:57:23 +00:00
parent d08010c7a5
commit d63c3c4aed
3 changed files with 26 additions and 0 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
fail2ban (0.7.5-2etch1~pre1) stable-security; urgency=low
* Propagated fix for asctime pattern from 0.7.8 release (closes: #421848)
-- Yaroslav Halchenko <debian@onerussian.com> Tue, 01 May 2007 22:18:03 -0400
fail2ban (0.7.5-2) unstable; urgency=low
* NEWS.Debian confusions - the latest NEWS entry and postinst message were

View File

@ -4,3 +4,4 @@ X00_rigid_python24
10_dbts_manpages
10_wuftpd_section
00_mail-whois-lines
s00_asctime-0.7.8

19
debian/patches/s00_asctime-0.7.8.dpatch vendored Normal file
View File

@ -0,0 +1,19 @@
#! /bin/sh /usr/share/dpatch/dpatch-run
## s00_asctime-0.7.8.dpatch by Yaroslav Halchenko <debian@onerussian.com>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Propagates fix from 0.7.8 to have #421848 fixed
@DPATCH@
diff -urNad fail2ban-0.7.5~/server/datedetector.py fail2ban-0.7.5/server/datedetector.py
--- fail2ban-0.7.5~/server/datedetector.py 2006-11-12 12:18:35.000000000 -0500
+++ fail2ban-0.7.5/server/datedetector.py 2007-05-01 22:35:51.000000000 -0400
@@ -51,7 +51,7 @@
# asctime
template = DateStrptime()
template.setName("Weekday Month Day Hour:Minute:Second Year")
- template.setRegex("\S{3} \S{3} \d{2} \d{2}:\d{2}:\d{2} \d{4}")
+ template.setRegex("\S{3} \S{3}\s{1,2}\d{1,2} \d{2}:\d{2}:\d{2} \d{4}")
template.setPattern("%a %b %d %H:%M:%S %Y")
self.__templates.append(template)
# simple date