Blame SOURCES/openssh-6.4p1-fromto-remote.patch

aedd00
diff --git a/scp.c b/scp.c
aedd00
index d98fa67..25d347b 100644
aedd00
--- a/scp.c
aedd00
+++ b/scp.c
aedd00
@@ -638,7 +638,10 @@ toremote(char *targ, int argc, char **argv)
aedd00
 			addargs(&alist, "%s", ssh_program);
aedd00
 			addargs(&alist, "-x");
aedd00
 			addargs(&alist, "-oClearAllForwardings=yes");
aedd00
-			addargs(&alist, "-n");
aedd00
+			if (isatty(fileno(stdin)))
aedd00
+				addargs(&alist, "-t");
aedd00
+			else
aedd00
+				addargs(&alist, "-n");
aedd00
 			for (j = 0; j < remote_remote_args.num; j++) {
aedd00
 				addargs(&alist, "%s",
aedd00
 				    remote_remote_args.list[j]);