ftpserver.pl: Corrected accidental move of logmsg() call
authorSteve Holme <steve_holme@hotmail.com>
Wed, 28 Aug 2013 21:58:33 +0000 (22:58 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Wed, 28 Aug 2013 21:58:33 +0000 (22:58 +0100)
Corrected the call to logmsg() in the IMAP SEARCH handler from commit
4ae7b7ea691497 as it should have been outputting the what argument and
not the test number.

tests/ftpserver.pl

index b58c44a668bf0f15ebba76c6c7a71b7751800833..ec7ccbba8a7421a435879d848b868335d8eb4819 100755 (executable)
@@ -1036,14 +1036,14 @@ sub SEARCH_imap {
     my ($what) = @_;
     fix_imap_params($what);
 
+    logmsg "SEARCH_imap got $what\n";
+
     if ($selected eq "") {
         sendcontrol "$cmdid BAD Command received in Invalid state\r\n";
     }
     else {
         my $testno = $selected;
 
-        logmsg "SEARCH_imap got test $testno\n";
-
         $testno =~ s/^([^0-9]*)//;
         my $testpart = "";
         if ($testno > 10000) {