diff options
author | Damien Miller <djm@mindrot.org> | 2004-01-21 14:11:05 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2004-01-21 14:11:05 +1100 |
commit | e4f5a82d6e4748a99fef33a08986392742cc27c8 (patch) | |
tree | d9576cfd5ac9777e8e9d2002c372283c9dfa3c7f | |
parent | fb1310eded0788f106dc7e1f113cc75e1206cb60 (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-- | ChangeLog | 5 | ||||
-rw-r--r-- | sftp.c | 6 |
2 files changed, 8 insertions, 3 deletions
@@ -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 | ||
27 | 20040114 | 30 | 20040114 |
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 $ |
@@ -24,7 +24,7 @@ | |||
24 | 24 | ||
25 | #include "includes.h" | 25 | #include "includes.h" |
26 | 26 | ||
27 | RCSID("$OpenBSD: sftp.c,v 1.39 2004/01/13 09:25:05 djm Exp $"); | 27 | RCSID("$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; | |||
43 | char *__progname; | 43 | char *__progname; |
44 | #endif | 44 | #endif |
45 | 45 | ||
46 | FILE* infile = stdin; | 46 | FILE* infile; |
47 | int batchmode = 0; | 47 | int batchmode = 0; |
48 | size_t copy_buffer_len = 32768; | 48 | size_t copy_buffer_len = 32768; |
49 | size_t num_requests = 16; | 49 | size_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) { |