summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-04-02 20:58:11 +0000
committerBen Lindstrom <mouring@eviladmin.org>2002-04-02 20:58:11 +0000
commita1d8114044835b1cab463bbcd5752efdedb26675 (patch)
tree95e3ffcd9c4656edfc6bfa568b9d4c769938c511
parent1e259bb0bf07db3b14b534d74641d374f7db54e7 (diff)
- markus@cvs.openbsd.org 2002/04/01 22:02:16
[sftp-client.c] 20480 is an upper limit for older server
-rw-r--r--ChangeLog5
-rw-r--r--sftp-client.c4
2 files changed, 6 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index cf42f3650..1159bc563 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -23,6 +23,9 @@
23 - markus@cvs.openbsd.org 2002/03/30 18:51:15 23 - markus@cvs.openbsd.org 2002/03/30 18:51:15
24 [monitor.c serverloop.c sftp-int.c sftp.c sshd.c] 24 [monitor.c serverloop.c sftp-int.c sftp.c sshd.c]
25 check waitpid for EINTR; based on patch from peter@ifm.liu.se 25 check waitpid for EINTR; based on patch from peter@ifm.liu.se
26 - markus@cvs.openbsd.org 2002/04/01 22:02:16
27 [sftp-client.c]
28 20480 is an upper limit for older server
26 29
2720020401 3020020401
28 - (stevesk) [monitor.c] PAM should work again; will *not* work with 31 - (stevesk) [monitor.c] PAM should work again; will *not* work with
@@ -8130,4 +8133,4 @@
8130 - Wrote replacements for strlcpy and mkdtemp 8133 - Wrote replacements for strlcpy and mkdtemp
8131 - Released 1.0pre1 8134 - Released 1.0pre1
8132 8135
8133$Id: ChangeLog,v 1.2014 2002/04/02 20:53:39 mouring Exp $ 8136$Id: ChangeLog,v 1.2015 2002/04/02 20:58:11 mouring Exp $
diff --git a/sftp-client.c b/sftp-client.c
index ce82b6af5..98ed2ba00 100644
--- a/sftp-client.c
+++ b/sftp-client.c
@@ -28,7 +28,7 @@
28/* XXX: copy between two remote sites */ 28/* XXX: copy between two remote sites */
29 29
30#include "includes.h" 30#include "includes.h"
31RCSID("$OpenBSD: sftp-client.c,v 1.28 2002/03/19 10:49:35 markus Exp $"); 31RCSID("$OpenBSD: sftp-client.c,v 1.29 2002/04/01 22:02:16 markus Exp $");
32 32
33#if defined(HAVE_SYS_QUEUE_H) && !defined(HAVE_BOGUS_SYS_QUEUE_H) 33#if defined(HAVE_SYS_QUEUE_H) && !defined(HAVE_BOGUS_SYS_QUEUE_H)
34#include <sys/queue.h> 34#include <sys/queue.h>
@@ -274,7 +274,7 @@ do_init(int fd_in, int fd_out, u_int transfer_buflen, u_int num_requests)
274 274
275 /* Some filexfer v.0 servers don't support large packets */ 275 /* Some filexfer v.0 servers don't support large packets */
276 if (version == 0) 276 if (version == 0)
277 ret->transfer_buflen = MAX(ret->transfer_buflen, 20480); 277 ret->transfer_buflen = MIN(ret->transfer_buflen, 20480);
278 278
279 return(ret); 279 return(ret);
280} 280}