summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2005-02-20 22:59:07 +0000
committerDamien Miller <djm@cvs.openbsd.org>2005-02-20 22:59:07 +0000
commit0bf3857691b06b60ca7ecbcccf41d0af94f698e6 (patch)
treedc6a5c9b893b598717fe1715ca1054f5e73c3458
parentbf90e22f729c078ee8490e390deb49ddbd0c4547 (diff)
turn on ssh batch mode when in sftp batch mode, patch from jdmossh AT nand.net;
ok markus@
-rw-r--r--usr.bin/ssh/sftp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/ssh/sftp.c b/usr.bin/ssh/sftp.c
index cf65266005f..910625d3c85 100644
--- a/usr.bin/ssh/sftp.c
+++ b/usr.bin/ssh/sftp.c
@@ -16,7 +16,7 @@
#include "includes.h"
-RCSID("$OpenBSD: sftp.c,v 1.61 2005/01/24 10:22:06 dtucker Exp $");
+RCSID("$OpenBSD: sftp.c,v 1.62 2005/02/20 22:59:06 djm Exp $");
#include <glob.h>
#include <histedit.h>
@@ -1461,6 +1461,7 @@ main(int argc, char **argv)
fatal("%s (%s).", strerror(errno), optarg);
showprogress = 0;
batchmode = 1;
+ addargs(&args, "-obatchmode yes");
break;
case 'P':
sftp_direct = optarg;