Skip to content

Commit

Permalink
spring-projectsGH-3026: Update FtpMessageHandler without octal
Browse files Browse the repository at this point in the history
let's check if it fixes the problem.
  • Loading branch information
joaquinjsb committed Oct 16, 2019
1 parent 2bf5662 commit a37c9fd
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -64,7 +64,7 @@ public boolean isChmodCapable() {
@Override
protected void doChmod(RemoteFileTemplate<FTPFile> remoteFileTemplate, final String path, final int chmod) {
remoteFileTemplate.executeWithClient((ClientCallbackWithoutResult<FTPClient>) client -> {
String chModCommand = "chmod " + Integer.toOctalString(chmod) + " " + path;
String chModCommand = "chmod " + chmod + " " + path;
try {
client.sendSiteCommand(chModCommand);
}
Expand Down

0 comments on commit a37c9fd

Please sign in to comment.