use tty allocation for a remote scp
This commit is contained in:
parent
36116fbf1f
commit
37a151ef1a
16
openssh-6.2p2-fromto-remote.patch
Normal file
16
openssh-6.2p2-fromto-remote.patch
Normal file
@ -0,0 +1,16 @@
|
||||
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]);
|
@ -191,6 +191,8 @@ Patch910: openssh-6.2p2-increase-size-of-DF-groups.patch
|
||||
# Run ssh-copy-id in the legacy mode when SSH_COPY_ID_LEGACY variable is set
|
||||
# http://bugzilla.mindrot.org/show_bug.cgi?id=2110
|
||||
Patch911: openssh-6.2p2-legacy-ssh-copy-id.patch
|
||||
# Use tty allocation for a remote scp (#985650)
|
||||
Patch912: openssh-6.2p2-fromto-remote.patch
|
||||
|
||||
|
||||
License: BSD
|
||||
@ -415,6 +417,7 @@ popd
|
||||
%patch909 -p1 -b .ssh_gai_strerror
|
||||
%patch910 -p1 -b .dh
|
||||
%patch911 -p1 -b .legacy-ssh-copy-id
|
||||
%patch912 -p1 -b .fromto-remote
|
||||
|
||||
%if 0
|
||||
# Nothing here yet
|
||||
|
Loading…
Reference in New Issue
Block a user