summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2004-01-21 03:08:00 +0000
committerDamien Miller <djm@cvs.openbsd.org>2004-01-21 03:08:00 +0000
commite5ec70f79145184b48c6b16fdb09972be5929547 (patch)
treebb9787de8917b1b30331c7be6157ffe5aa29be86
parentbc39a905f8086f2202dc4f9889014e43238e1d51 (diff)
initialise infile in main, rather than statically - from portable
-rw-r--r--usr.bin/ssh/sftp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/ssh/sftp.c b/usr.bin/ssh/sftp.c
index d0e595e0c38..0164547718a 100644
--- a/usr.bin/ssh/sftp.c
+++ b/usr.bin/ssh/sftp.c
@@ -24,7 +24,7 @@
#include "includes.h"
-RCSID("$OpenBSD: sftp.c,v 1.39 2004/01/13 09:25:05 djm Exp $");
+RCSID("$OpenBSD: sftp.c,v 1.40 2004/01/21 03:07:59 djm Exp $");
#include "buffer.h"
#include "xmalloc.h"
@@ -37,7 +37,7 @@ RCSID("$OpenBSD: sftp.c,v 1.39 2004/01/13 09:25:05 djm Exp $");
#include "sftp-client.h"
#include "sftp-int.h"
-FILE* infile = stdin;
+FILE* infile;
int batchmode = 0;
size_t copy_buffer_len = 32768;
size_t num_requests = 16;
@@ -134,7 +134,9 @@ main(int argc, char **argv)
addargs(&args, "-oForwardX11 no");
addargs(&args, "-oForwardAgent no");
addargs(&args, "-oClearAllForwardings yes");
+
ll = SYSLOG_LEVEL_INFO;
+ infile = stdin;
while ((ch = getopt(argc, argv, "1hvCo:s:S:b:B:F:P:R:")) != -1) {
switch (ch) {