summaryrefslogtreecommitdiff
path: root/sys-apps/logwatch/files/logwatch-7.4.3+-openssh-hpn.patch
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/logwatch/files/logwatch-7.4.3+-openssh-hpn.patch')
-rw-r--r--sys-apps/logwatch/files/logwatch-7.4.3+-openssh-hpn.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/sys-apps/logwatch/files/logwatch-7.4.3+-openssh-hpn.patch b/sys-apps/logwatch/files/logwatch-7.4.3+-openssh-hpn.patch
new file mode 100644
index 000000000000..426253df85d0
--- /dev/null
+++ b/sys-apps/logwatch/files/logwatch-7.4.3+-openssh-hpn.patch
@@ -0,0 +1,16 @@
+Add an 'ignore' line for the HPN patch that we enable on our openssh by default.
+
+https://sourceforge.net/tracker/?func=detail&aid=3257504&group_id=312875&atid=1316824
+
+--- a/scripts/services/sshd
++++ b/scripts/services/sshd
+@@ -315,7 +315,8 @@ while (defined(my $ThisLine = <STDIN>)) {
+ ($ThisLine =~ /Found matching \w+ key:/ ) or
+ ($ThisLine =~ /User child is on pid \d/ ) or
+ ($ThisLine =~ /Nasty PTR record .* is set up for [\da-fA-F.:]+, ignoring/) or
+- ($ThisLine =~ /Disconnected from [\da-fA-F.:]* port \d*/ )
++ ($ThisLine =~ /Disconnected from [\da-fA-F.:]* port \d*/ ) or
++ ($ThisLine =~ /^SSH: Server;L[Tt]ype: /)
+ ) {
+ # Ignore these
+ } elsif ( my ($Method,$User,$Host,$Port,$Key,$FingerP) = ($ThisLine =~ /^Accepted (\S+) for ((?:invalid user )?\S+) from ([\d\.:a-f]+)(?:%\w+)? port (\d+) ssh[12](?:: (\w+) (.+))?/) ) {