Browse Source

send the filename in the proper remote format in the site command done

to chmod a file after a put
PR: 23143


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275231 13f79535-47bb-0310-9956-ffa450edef68
master
Antoine Levy-Lambert 22 years ago
parent
commit
d9068e8df8
2 changed files with 4 additions and 1 deletions
  1. +3
    -0
      WHATSNEW
  2. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java

+ 3
- 0
WHATSNEW View File

@@ -219,6 +219,9 @@ Fixed bugs:
* ftp chmod failed when the remote system was UNIX and local system Windows * ftp chmod failed when the remote system was UNIX and local system Windows
Bugzilla Report 21865. Bugzilla Report 21865.


* ftp put with chmod failed when the remote system was UNIX and local system Windows
Bugzilla Report 23143.

* ftp did not set the ascii mode explicity, causing problems with ftp servers * ftp did not set the ascii mode explicity, causing problems with ftp servers
having binary as default having binary as default




+ 1
- 1
src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java View File

@@ -1706,7 +1706,7 @@ public class FTP
} else { } else {
// see if we should issue a chmod command // see if we should issue a chmod command
if (chmod != null) { if (chmod != null) {
doSiteCommand(ftp, "chmod " + chmod + " " + filename);
doSiteCommand(ftp, "chmod " + chmod + " " + resolveFile(filename));
} }
log("File " + file.getAbsolutePath() + " copied to " + server, log("File " + file.getAbsolutePath() + " copied to " + server,
Project.MSG_VERBOSE); Project.MSG_VERBOSE);


Loading…
Cancel
Save