Commit c64332d
Use RawCommand() for SSH exec instead of joining split args
s.Command() shell-parses the input, losing the original quoting.
RawCommand() preserves the exact string the client sent, which is
then passed to sh -c like OpenSSH does.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent f587b3f commit c64332d
1 file changed
+5
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
| 50 | + | |
| 51 | + | |
52 | 52 | | |
53 | | - | |
54 | | - | |
| 53 | + | |
| 54 | + | |
55 | 55 | | |
56 | | - | |
57 | | - | |
| 56 | + | |
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
| |||
0 commit comments