]> git.etc.gen.nz Git - spong.git/commitdiff
remove_np_files() had wrong regexp for np-* files and wrong directory in unlink command.
authorStephen L Johnson <sjohnson@monsters.org>
Thu, 17 Feb 2000 02:47:51 +0000 (02:47 +0000)
committerStephen L Johnson <sjohnson@monsters.org>
Thu, 17 Feb 2000 02:47:51 +0000 (02:47 +0000)
src/spong-server.pl

index 80f6af9ada2b8f2be5ca9e6a1ddc75c6940c4fca..205a610bbccbf4df1aba24a5b3ca9ae92e83727d 100755 (executable)
@@ -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";
       }
    }