diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-10-02 01:13:25 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-10-02 01:13:25 +0000 |
| commit | f38978765535e8c844371dbcd8e2ae1ace135e08 (patch) | |
| tree | 8f6f73cc41ec340be45959fae67da4c6abec1e21 /openssh-6.4p1-fromto-remote.patch | |
| parent | 151bd95e0af0e9382ca9065b0d6cc6d62f1ac794 (diff) | |
automatic import of opensshopeneuler20.03
Diffstat (limited to 'openssh-6.4p1-fromto-remote.patch')
| -rw-r--r-- | openssh-6.4p1-fromto-remote.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/openssh-6.4p1-fromto-remote.patch b/openssh-6.4p1-fromto-remote.patch new file mode 100644 index 0000000..4a7d849 --- /dev/null +++ b/openssh-6.4p1-fromto-remote.patch @@ -0,0 +1,16 @@ +diff --git a/scp.c b/scp.c +index d98fa67..25d347b 100644 +--- a/scp.c ++++ b/scp.c +@@ -638,7 +638,10 @@ toremote(char *targ, int argc, char **argv) + addargs(&alist, "%s", ssh_program); + addargs(&alist, "-x"); + addargs(&alist, "-oClearAllForwardings=yes"); +- addargs(&alist, "-n"); ++ if (isatty(fileno(stdin))) ++ addargs(&alist, "-t"); ++ else ++ addargs(&alist, "-n"); + for (j = 0; j < remote_remote_args.num; j++) { + addargs(&alist, "%s", + remote_remote_args.list[j]); |
