You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
502 B
16 lines
502 B
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]);
|
|
|