Merge pull request #1071 from eclipse/sshTermFix
Fix websocket terminal launching in ssh machine6.19.x
commit
bb02aabd21
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue