Merge pull request #1071 from eclipse/sshTermFix

Fix websocket terminal launching in ssh machine
6.19.x
Alexander Garagatyi 2016-04-18 22:14:37 +03:00
commit bb02aabd21
1 changed files with 3 additions and 3 deletions

View File

@ -211,14 +211,14 @@ public class JschSshClient implements SshClient {
// apply permissions
File file = new File(sourcePath);
// read
int permissions = 4;
int permissions = 256;
// execute
if (file.canExecute()) {
permissions += 1;
permissions += 64;
}
// write
if (file.canWrite()) {
permissions += 2;
permissions += 128;
}
channelSftp.chmod(permissions, absoluteTargetPath);
} catch (SftpException e) {