forked from rpms/openssh
81d24c0aa7
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/openssh#a048fcc3d0920b13b79be801efbae08388212c5f
17 lines
502 B
Diff
17 lines
502 B
Diff
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]);
|