From: Stephen L Johnson Date: Thu, 17 Feb 2000 02:47:51 +0000 (+0000) Subject: remove_np_files() had wrong regexp for np-* files and wrong directory in unlink command. X-Git-Tag: spong-2_6d~2 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d6727c51cd4e2ad1e69d7598d1d0de3074d1ccb;p=spong.git remove_np_files() had wrong regexp for np-* files and wrong directory in unlink command. --- diff --git a/src/spong-server.pl b/src/spong-server.pl index 80f6af9..205a610 100755 --- a/src/spong-server.pl +++ b/src/spong-server.pl @@ -696,8 +696,8 @@ sub remove_np_files { if (! @files) { return; } foreach $file (@files) { - if ( $file =~ m/^np-[^-]-$host-$service/ ) { - unlink "$SPONGWWW/$file"; + if ( $file =~ m/^np-.*-$host-$service/ ) { + unlink "$SPONGTMP/$file"; } }