From: <los...@us...> - 2006-12-19 21:51:15
|
Revision: 496 http://svn.sourceforge.net/fail2ban/?rev=496&view=rev Author: lostcontrol Date: 2006-12-19 13:51:14 -0800 (Tue, 19 Dec 2006) Log Message: ----------- - Fixed removal of host in hosts.deny. Thanks to Ren?\195?\169 Berber Modified Paths: -------------- trunk/CHANGELOG trunk/README trunk/config/action.d/hostsdeny.conf Modified: trunk/CHANGELOG =================================================================== --- trunk/CHANGELOG 2006-12-18 22:35:34 UTC (rev 495) +++ trunk/CHANGELOG 2006-12-19 21:51:14 UTC (rev 496) @@ -12,6 +12,7 @@ - Added a "sleep 1" in redhat-initd. Thanks to Jim Wight - Use /dev/log for SYSLOG output. Thanks to Joerg Sommrey - Use numeric output for iptables in "actioncheck" +- Fixed removal of host in hosts.deny. Thanks to René Berber ver. 0.7.5 (2006/12/07) - beta ---------- Modified: trunk/README =================================================================== --- trunk/README 2006-12-18 22:35:34 UTC (rev 495) +++ trunk/README 2006-12-19 21:51:14 UTC (rev 496) @@ -72,7 +72,8 @@ Tom Pike, Iain Lea, Andrey G. Grozin, Yaroslav Halchenko, Jonathan Kamens, Stephen Gildea, Markus Hoffmann, Mark Edgington, Patrick Börjesson, kojiro, zugeschmiert, Tyler, -Nick Munger, Christoph Haas, Justin Shore, Joël Bertrand +Nick Munger, Christoph Haas, Justin Shore, Joël Bertrand, +René Berber License: -------- Modified: trunk/config/action.d/hostsdeny.conf =================================================================== --- trunk/config/action.d/hostsdeny.conf 2006-12-18 22:35:34 UTC (rev 495) +++ trunk/config/action.d/hostsdeny.conf 2006-12-19 21:51:14 UTC (rev 496) @@ -44,9 +44,7 @@ # <time> unix timestamp of the ban time # Values: CMD # -actionunban = IP=<ip> && - grep -v "ALL: $IP" <file> > <tmpfile> && - mv <tmpfile> <file> +actionunban = IP=<ip> && sed -i.old /ALL:\ $IP/d <file> [Init] @@ -55,10 +53,3 @@ # Values: STR Default: /etc/hosts.deny # file = /etc/hosts.deny - -# Option: file -# Notes.: hosts.deny temporary file path. -# Values: STR Default: /etc/hostsdeny.failban -# -tmpfile = /tmp/hosts.deny.tmp - This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |