summaryrefslogtreecommitdiff
path: root/sftp.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2004-01-21 14:11:05 +1100
committerDamien Miller <djm@mindrot.org>2004-01-21 14:11:05 +1100
commite4f5a82d6e4748a99fef33a08986392742cc27c8 (patch)
treed9576cfd5ac9777e8e9d2002c372283c9dfa3c7f /sftp.c
parentfb1310eded0788f106dc7e1f113cc75e1206cb60 (diff)
downloadopenssh-git-e4f5a82d6e4748a99fef33a08986392742cc27c8.tar.gz
- djm@cvs.openbsd.org 2004/01/21 03:07:59
[sftp.c] initialise infile in main, rather than statically - from portable
Diffstat (limited to 'sftp.c')
-rw-r--r--sftp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sftp.c b/sftp.c
index e288302f..0be27887 100644
--- a/sftp.c
+++ b/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"
@@ -43,7 +43,7 @@ extern char *__progname;
char *__progname;
#endif
-FILE* infile = stdin;
+FILE* infile;
int batchmode = 0;
size_t copy_buffer_len = 32768;
size_t num_requests = 16;
@@ -141,7 +141,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) {