dfs 2003/07/23 06:40:41 Modified: net/src/java/org/apache/commons/net/ftp FTPClient.java Log: Applied patch correcting oversight that prevented restart from working in passive mode. Revision Changes Path 1.11 +5 -0 jakarta-commons/net/src/java/org/apache/commons/net/ftp/FTPClient.java Index: FTPClient.java =================================================================== RCS file: /home/cvs/jakarta-commons/net/src/java/org/apache/commons/net/ftp/FTPClient.java,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- FTPClient.java 18 May 2003 04:03:16 -0000 1.10 +++ FTPClient.java 23 Jul 2003 13:40:41 -0000 1.11 @@ -467,6 +467,11 @@ __parsePassiveModeReply((String)_replyLines.elementAt(0)); socket = _socketFactory_.createSocket(__passiveHost, __passivePort); + if ((__restartOffset > 0) && !restart(__restartOffset)) + { + socket.close(); + return null; + } if (!FTPReply.isPositivePreliminary(sendCommand(command, arg))) {
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]