ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 11044] - FTP chmod from Windows-UNIX: wrong separator
Date Wed, 02 Apr 2003 08:16:09 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11044>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11044

FTP chmod from Windows-UNIX: wrong separator





------- Additional Comments From aloew@t-online.de  2003-04-02 08:16 -------
Another problem about separators within class FTP:

Using a Windows client and a Solaris 8 FTP server,
ftp.changeWorkingDirectory(parent) will fail at line 632
within method 

protected void createParents(FTPClient ftp, String filename)

because the local file separator has not been replaced.

Fix:
"parent = resolveFile(parent);" has to be added at line 632.

            if (parent != null) {
+               parent = resolveFile(parent);
                if (!ftp.changeWorkingDirectory(parent)) {

Mime
View raw message