diff options
Diffstat (limited to 'libjava/classpath/gnu/java/net/protocol/ftp/FTPConnection.java')
-rw-r--r-- | libjava/classpath/gnu/java/net/protocol/ftp/FTPConnection.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libjava/classpath/gnu/java/net/protocol/ftp/FTPConnection.java b/libjava/classpath/gnu/java/net/protocol/ftp/FTPConnection.java index d0f48727cfa..f5317d479bc 100644 --- a/libjava/classpath/gnu/java/net/protocol/ftp/FTPConnection.java +++ b/libjava/classpath/gnu/java/net/protocol/ftp/FTPConnection.java @@ -429,6 +429,9 @@ public class FTPConnection public boolean changeWorkingDirectory(String path) throws IOException { + // Do nothing if the path is empty. + if (path.length() == 0) + return true; String cmd = CWD + ' ' + path; send(cmd); FTPResponse response = getResponse(); |