diff options
author | 2004-01-21 03:07:59 +0000 | |
---|---|---|
committer | 2004-01-21 03:07:59 +0000 | |
commit | 405a56b08630a39d9e032878eb156209f0777c7d (patch) | |
tree | 3f1d35539cbe5957822a9949e984fc142b1eea5d | |
parent | cleanup (diff) | |
download | wireguard-openbsd-405a56b08630a39d9e032878eb156209f0777c7d.tar.xz wireguard-openbsd-405a56b08630a39d9e032878eb156209f0777c7d.zip |
initialise infile in main, rather than statically - from portable
-rw-r--r-- | usr.bin/ssh/sftp.c | 6 |
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) { |