Blame openssh-4.3p1-fromto-remote.patch
|
Tomáš Mráz |
7e1c55 |
--- openssh-4.3p2/scp.c.fromto-remote 2006-01-31 12:11:38.000000000 +0100
|
|
Tomáš Mráz |
7e1c55 |
+++ openssh-4.3p2/scp.c 2006-04-14 10:09:56.000000000 +0200
|
|
Tomáš Mráz |
7e1c55 |
@@ -446,7 +446,11 @@
|
|
Tomáš Mráz |
fd638a |
addargs(&alist, "-v");
|
|
Tomáš Mráz |
fd638a |
addargs(&alist, "-x");
|
|
Tomáš Mráz |
fd638a |
addargs(&alist, "-oClearAllForwardings yes");
|
|
Tomáš Mráz |
fd638a |
- addargs(&alist, "-n");
|
|
Tomáš Mráz |
7e1c55 |
+ if (isatty(fileno(stdin))) {
|
|
Tomáš Mráz |
7e1c55 |
+ addargs(&alist, "-t");
|
|
Tomáš Mráz |
7e1c55 |
+ } else {
|
|
Tomáš Mráz |
7e1c55 |
+ addargs(&alist, "-n");
|
|
Tomáš Mráz |
7e1c55 |
+ }
|
|
Tomáš Mráz |
fd638a |
|
|
Tomáš Mráz |
fd638a |
*src++ = 0;
|
|
Tomáš Mráz |
fd638a |
if (*src == 0)
|