From 4e827f641935916ad5869d4c3dc9c11a37ca1339 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 24 Aug 2005 18:38:04 +0000 Subject: show attacks of unknown type --- perl-install/network/ifw.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/perl-install/network/ifw.pm b/perl-install/network/ifw.pm index 8550ddcc5..31ad4344c 100644 --- a/perl-install/network/ifw.pm +++ b/perl-install/network/ifw.pm @@ -136,12 +136,12 @@ sub attack_to_hash { $attack->{prefix} eq 'SCAN' ? N("Port scanning") : $attack->{prefix} eq 'SERV' ? N("Service attack") : $attack->{prefix} eq 'PASS' ? N("Password cracking") - : undef; + : N(qq("%s" attack), $attack->{prefix}); $attack->{msg} = $attack->{prefix} eq "SCAN" ? N("A port scanning attack has been attempted by %s.", $attack->{hostname}) : $attack->{prefix} eq "SERV" ? N("The %s service has been attacked by %s.", $attack->{service}, $attack->{hostname}) : $attack->{prefix} eq "PASS" ? N("A password cracking attack has been attempted by %s.", $attack->{hostname}) - : undef; + : N(qq(A "%s" attack has been attempted by %s), $attack->{prefix}, $attack->{hostname}); $attack; } -- cgit v1.2.1