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

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