On Mon, Feb 10, 2003 at 03:57:26PM +0100, Hans Christian Saustrup wrote:
> Actually the strace is with the patched lftp and the original
> proftpd. I just tested with the patched lftp and the proftpd I
> patched ("450 No files found" -> "550 No files found") and that
> worked.
Ok. Please try this additional patch for lftp.
--
Alexander.
Index: ftpclass.cc
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/ftpclass.cc,v
retrieving revision 1.254
diff -u -p -r1.254 ftpclass.cc
--- ftpclass.cc 10 Feb 2003 08:22:20 -0000 1.254
+++ ftpclass.cc 11 Feb 2003 12:25:31 -0000
@@ -322,7 +322,9 @@ void Ftp::NoFileCheck(int act)
/* 5xx that aren't errors at all */
bool Ftp::NonError5XX(int act)
{
- return (mode==LIST && act==RESP_NO_FILE && (!file || !file[0]));
+ return (mode==LIST && act==RESP_NO_FILE && (!file || !file[0]))
+ // ...and proftpd workaround.
+ || (mode==LIST && act==450 && strstr(line,"No files found"));
}
/* 5xx that are really transient like 4xx */