From: Steve Holme Date: Wed, 28 Aug 2013 21:58:33 +0000 (+0100) Subject: ftpserver.pl: Corrected accidental move of logmsg() call X-Git-Tag: curl-7_33_0~199 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=49e3d803ab5bdcb2ef1d865770a5857a7f09fe94;p=curl ftpserver.pl: Corrected accidental move of logmsg() call 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. --- diff --git a/tests/ftpserver.pl b/tests/ftpserver.pl index b58c44a66..ec7ccbba8 100755 --- a/tests/ftpserver.pl +++ b/tests/ftpserver.pl @@ -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) {