summaryrefslogtreecommitdiff
path: root/scp.c
diff options
context:
space:
mode:
Diffstat (limited to 'scp.c')
-rw-r--r--scp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/scp.c b/scp.c
index 6901e0c94..812ab5301 100644
--- a/scp.c
+++ b/scp.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: scp.c,v 1.207 2020/01/23 07:10:22 dtucker Exp $ */ 1/* $OpenBSD: scp.c,v 1.208 2020/04/30 17:07:10 markus Exp $ */
2/* 2/*
3 * scp - secure remote copy. This is basically patched BSD rcp which 3 * scp - secure remote copy. This is basically patched BSD rcp which
4 * uses ssh to do the data transfer (instead of using rcmd). 4 * uses ssh to do the data transfer (instead of using rcmd).
@@ -348,6 +348,7 @@ do_cmd2(char *host, char *remuser, int port, char *cmd, int fdin, int fdout)
348 addargs(&args, "-l"); 348 addargs(&args, "-l");
349 addargs(&args, "%s", remuser); 349 addargs(&args, "%s", remuser);
350 } 350 }
351 addargs(&args, "-oBatchMode=yes");
351 addargs(&args, "--"); 352 addargs(&args, "--");
352 addargs(&args, "%s", host); 353 addargs(&args, "%s", host);
353 addargs(&args, "%s", cmd); 354 addargs(&args, "%s", cmd);