diff --git a/tests/ftpserver.pl b/tests/ftpserver.pl index 918df0ca7b76bc19a900107b3ceb02099d2fd353..c5c7e7b5c7b807409bda30b88d7b96542790df09 100644 --- a/tests/ftpserver.pl +++ b/tests/ftpserver.pl @@ -76,6 +76,7 @@ my %commandok = ( 'SIZE' => 'loggedin|twosock', 'PWD' => 'loggedin|twosock', 'QUIT' => 'loggedin|twosock', + 'DELE' => 'loggedin|twosock' ); # initially, we're in 'fresh' state @@ -97,6 +98,7 @@ my %displaytext = ('USER' => '331 We are happy you popped in!', 'QUIT' => '221 bye bye baby', # just reply something 'PWD' => '257 "/nowhere/anywhere" is current directory', 'REST' => '350 Yeah yeah we set it there for you', + 'DELE' => '200 OK OK OK whatever you say' ); # callback functions for certain commands @@ -300,6 +302,7 @@ $SIG{CHLD} = \&REAPER; my %customreply; sub customize { + undef %customreply; open(CUSTOM, ") { if($_ =~ /REPLY ([A-Z]+) (.*)/) { $customreply{$1}=$2;