Cyberduck Mountain Duck CLI

Ticket #684: feat_patch

File feat_patch, 688 bytes (added by neothematrix, on Feb 17, 2008 at 4:41:42 PM)

to make the features() function saves correctly data inside the feature variable

Line 
1Index: source/com/enterprisedt/net/ftp/FTPClient.java
2===================================================================
3--- source/com/enterprisedt/net/ftp/FTPClient.java      (revision 3482)
4+++ source/com/enterprisedt/net/ftp/FTPClient.java      (working copy)
5@@ -873,7 +873,7 @@
6             FTPReply reply = control.sendCommand("FEAT");
7             lastValidReply = control.validateReply(reply, new String[]{"211", "500", "502"});
8             if(lastValidReply.getReplyCode().equals("211"))
9-                return lastValidReply.getReplyData();
10+                return features = lastValidReply.getReplyData();
11             else
12                 throw new FTPException(reply);
13         }