summaryrefslogtreecommitdiff
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
parentfb1310eded0788f106dc7e1f113cc75e1206cb60 (diff)
- djm@cvs.openbsd.org 2004/01/21 03:07:59
[sftp.c] initialise infile in main, rather than statically - from portable
-rw-r--r--ChangeLog5
-rw-r--r--sftp.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 70eebf71e..8cebcce96 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -23,6 +23,9 @@
23 - markus@cvs.openbsd.org 2004/01/19 21:25:15 23 - markus@cvs.openbsd.org 2004/01/19 21:25:15
24 [auth2-hostbased.c auth2-pubkey.c serverloop.c ssh-keysign.c sshconnect2.c] 24 [auth2-hostbased.c auth2-pubkey.c serverloop.c ssh-keysign.c sshconnect2.c]
25 fix mem leaks; some fixes from Pete Flugstad; tested dtucker@ 25 fix mem leaks; some fixes from Pete Flugstad; tested dtucker@
26 - djm@cvs.openbsd.org 2004/01/21 03:07:59
27 [sftp.c]
28 initialise infile in main, rather than statically - from portable
26 29
2720040114 3020040114
28 - (dtucker) [auth-pam.c] Have monitor die if PAM authentication thread exits 31 - (dtucker) [auth-pam.c] Have monitor die if PAM authentication thread exits
@@ -1692,4 +1695,4 @@
1692 - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo. 1695 - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo.
1693 Report from murple@murple.net, diagnosis from dtucker@zip.com.au 1696 Report from murple@murple.net, diagnosis from dtucker@zip.com.au
1694 1697
1695$Id: ChangeLog,v 1.3175 2004/01/21 00:02:50 djm Exp $ 1698$Id: ChangeLog,v 1.3176 2004/01/21 03:11:05 djm Exp $
diff --git a/sftp.c b/sftp.c
index e288302fa..0be27887f 100644
--- a/sftp.c
+++ b/sftp.c
@@ -24,7 +24,7 @@
24 24
25#include "includes.h" 25#include "includes.h"
26 26
27RCSID("$OpenBSD: sftp.c,v 1.39 2004/01/13 09:25:05 djm Exp $"); 27RCSID("$OpenBSD: sftp.c,v 1.40 2004/01/21 03:07:59 djm Exp $");
28 28
29#include "buffer.h" 29#include "buffer.h"
30#include "xmalloc.h" 30#include "xmalloc.h"
@@ -43,7 +43,7 @@ extern char *__progname;
43char *__progname; 43char *__progname;
44#endif 44#endif
45 45
46FILE* infile = stdin; 46FILE* infile;
47int batchmode = 0; 47int batchmode = 0;
48size_t copy_buffer_len = 32768; 48size_t copy_buffer_len = 32768;
49size_t num_requests = 16; 49size_t num_requests = 16;
@@ -141,7 +141,9 @@ main(int argc, char **argv)
141 addargs(&args, "-oForwardX11 no"); 141 addargs(&args, "-oForwardX11 no");
142 addargs(&args, "-oForwardAgent no"); 142 addargs(&args, "-oForwardAgent no");
143 addargs(&args, "-oClearAllForwardings yes"); 143 addargs(&args, "-oClearAllForwardings yes");
144
144 ll = SYSLOG_LEVEL_INFO; 145 ll = SYSLOG_LEVEL_INFO;
146 infile = stdin;
145 147
146 while ((ch = getopt(argc, argv, "1hvCo:s:S:b:B:F:P:R:")) != -1) { 148 while ((ch = getopt(argc, argv, "1hvCo:s:S:b:B:F:P:R:")) != -1) {
147 switch (ch) { 149 switch (ch) {