v1.8.65: Linux→Windows auto-sanitize commands for Windows SSH servers

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
chrome-storm-c442
2026-02-25 08:27:57 -05:00
parent 327647f77e
commit b2c6f8fdd3
6 changed files with 283 additions and 5 deletions

View File

@@ -246,7 +246,10 @@ class SSHClientWrapper:
sftp.put(local_path, remote_path, callback=progress_cb)
else:
sftp.put(local_path, remote_path)
sftp.chmod(remote_path, 0o664)
try:
sftp.chmod(remote_path, 0o664)
except OSError:
pass # Windows OpenSSH doesn't support chmod
sftp.close()
finally:
client.close()