From b56b820364005ab087544ada5af96cc1c4206eb5 Mon Sep 17 00:00:00 2001 From: Stephen L Johnson Date: Mon, 2 Jun 2003 20:54:27 +0000 Subject: [PATCH] Fixed problem with file name regexp in remove_np_files(). Thank to John Faichney --- src/spong-server.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spong-server.pl b/src/spong-server.pl index 12a5847..a3ffd25 100755 --- a/src/spong-server.pl +++ b/src/spong-server.pl @@ -6,7 +6,7 @@ # There are one or more update processes that listen for status updates # from client programs. -# $Id: spong-server.pl,v 1.59 2003/05/14 06:02:01 sljohnson Exp $ +# $Id: spong-server.pl,v 1.60 2003/06/02 20:54:27 sljohnson Exp $ use lib "@@LIBDIR@@"; @@ -1303,7 +1303,7 @@ sub remove_np_files { if (! @files) { return; } foreach $file (@files) { - if ( $file =~ m/^np-[^-]-$host-$service/ ) { + if ( $file =~ m/^np-[^\-]+-$host-$service/ ) { unlink "$SPONGTMP/$file"; } } -- 2.30.2