rpms/logwatch/F-11 logwatch-7.3.6-lost-connection.patch, NONE, 1.1 logwatch.spec, 1.115, 1.116

Karel Klíč kklic at fedoraproject.org
Wed Dec 16 11:25:51 UTC 2009


Author: kklic

Update of /cvs/extras/rpms/logwatch/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv19254

Modified Files:
	logwatch.spec 
Added Files:
	logwatch-7.3.6-lost-connection.patch 
Log Message:
Fixed error in the RE that matches lost connection lines in postfix script

logwatch-7.3.6-lost-connection.patch:
 postfix |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- NEW FILE logwatch-7.3.6-lost-connection.patch ---
diff -up logwatch-7.3.6/scripts/services/postfix.lost-connection logwatch-7.3.6/scripts/services/postfix
--- logwatch-7.3.6/scripts/services/postfix.lost-connection	2009-12-16 12:06:01.208255271 +0100
+++ logwatch-7.3.6/scripts/services/postfix	2009-12-16 12:06:17.115378576 +0100
@@ -1536,7 +1536,7 @@ while ( <> ) {
    # end of $re_QID section
 
    # see also ConnectionLost in $re_QID section
-   elsif ( ($reason,$host,$hostip) = ($p1 =~ /lost connection (after [^ ]*) (\(\d+ bytes\) )?from ([^[]*)\[($re_IP|unknown)\]$/o )) {
+   elsif ( ($reason,$host,$hostip) = ($p1 =~ /lost connection (after [^ ]*) (?:\(\d+ bytes\) )?from ([^[]*)\[($re_IP|unknown)\]$/o )) {
       unless ($hostip =~ /unknown/) {
          #TD lost connection after DATA (0 bytes) from mail.example.com[192.168.0.1]    
          #TD lost connection after CONNECT from mail.example.com[192.168.0.1] 


Index: logwatch.spec
===================================================================
RCS file: /cvs/extras/rpms/logwatch/F-11/logwatch.spec,v
retrieving revision 1.115
retrieving revision 1.116
diff -u -p -r1.115 -r1.116
--- logwatch.spec	16 Dec 2009 10:44:35 -0000	1.115
+++ logwatch.spec	16 Dec 2009 11:25:51 -0000	1.116
@@ -54,6 +54,8 @@ Patch54: logwatch-7.3.6-exim2.patch
 Patch55: logwatch-7.3.6-removeservice.patch
 Patch56: logwatch-7.3.6-named5.patch
 Patch57: logwatch-7.3.6-iptables.patch
+# Not sent to upstream.
+Patch58: logwatch-7.3.6-lost-connection.patch
 Requires: textutils sh-utils grep mailx
 Requires: perl(Date::Manip)
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -115,6 +117,7 @@ of the package on many systems.
 %patch55 -p1
 %patch56 -p1
 %patch57 -p1
+%patch58 -p1
 rm -f scripts/services/*.orig
 
 %build
@@ -228,6 +231,7 @@ rm -rf %{buildroot}
 %changelog
 * Wed Dec  2 2009 Karel Klic <kklic at redhat.com> 7.3.6-45
 - Add 802.1q subinterface support to iptables report (#507743)
+- Fixed error in the RE that matches "lost connection" lines in postfix script; lost-connection.patch (#525903)
 
 * Tue Aug 11 2009 Ivana Varekova <varekova at redhat.com> 7.3.6-44
 - parse a few unmatched entries in named script (#513853)




More information about the fedora-extras-commits mailing list