commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject cvs commit: jakarta-commons/net/src/java/org/apache/commons/net/ftp FTPClient.java
Date Wed, 23 Jul 2003 13:40:41 GMT
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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message