Tue Apr 14 05:10:38 2015 UTC ()
Pull up following revision(s) (requested by christos in ticket #685):
	usr.bin/ftp/ftp_var.h: revision 1.83
Increase the buffer limit; otherwise files in:
    http://www.taxdetective.ca/Samples/sampledatafiles.html
fail.


(snj)
diff -r1.82 -r1.82.8.1 src/usr.bin/ftp/ftp_var.h

cvs diff -r1.82 -r1.82.8.1 src/usr.bin/ftp/ftp_var.h (expand / switch to unified diff)

--- src/usr.bin/ftp/ftp_var.h 2012/12/21 18:07:36 1.82
+++ src/usr.bin/ftp/ftp_var.h 2015/04/14 05:10:38 1.82.8.1
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: ftp_var.h,v 1.82 2012/12/21 18:07:36 christos Exp $ */ 1/* $NetBSD: ftp_var.h,v 1.82.8.1 2015/04/14 05:10:38 snj Exp $ */
2 2
3/*- 3/*-
4 * Copyright (c) 1996-2009 The NetBSD Foundation, Inc. 4 * Copyright (c) 1996-2009 The NetBSD Foundation, Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * This code is derived from software contributed to The NetBSD Foundation 7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Luke Mewburn. 8 * by Luke Mewburn.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions 11 * modification, are permitted provided that the following conditions
12 * are met: 12 * are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
@@ -159,27 +159,27 @@ enum { @@ -159,27 +159,27 @@ enum {
159 FEAT_FEAT = 0, /* FEAT, OPTS */ 159 FEAT_FEAT = 0, /* FEAT, OPTS */
160 FEAT_MDTM, /* MDTM */ 160 FEAT_MDTM, /* MDTM */
161 FEAT_MLST, /* MLSD, MLST */ 161 FEAT_MLST, /* MLSD, MLST */
162 FEAT_REST_STREAM, /* RESTart STREAM */ 162 FEAT_REST_STREAM, /* RESTart STREAM */
163 FEAT_SIZE, /* SIZE */ 163 FEAT_SIZE, /* SIZE */
164 FEAT_TVFS, /* TVFS (not used) */ 164 FEAT_TVFS, /* TVFS (not used) */
165 FEAT_max 165 FEAT_max
166}; 166};
167 167
168 168
169/* 169/*
170 * Global defines 170 * Global defines
171 */ 171 */
172#define FTPBUFLEN MAXPATHLEN + 200 172#define FTPBUFLEN (4 * MAXPATHLEN)
173#define MAX_IN_PORT_T 0xffffU 173#define MAX_IN_PORT_T 0xffffU
174 174
175#define HASHBYTES 1024 /* default mark for `hash' command */ 175#define HASHBYTES 1024 /* default mark for `hash' command */
176#define DEFAULTINCR 1024 /* default increment for `rate' command */ 176#define DEFAULTINCR 1024 /* default increment for `rate' command */
177 177
178#define FTP_PORT 21 /* default if ! getservbyname("ftp/tcp") */ 178#define FTP_PORT 21 /* default if ! getservbyname("ftp/tcp") */
179#define HTTP_PORT 80 /* default if ! getservbyname("http/tcp") */ 179#define HTTP_PORT 80 /* default if ! getservbyname("http/tcp") */
180#define HTTPS_PORT 443 /* default if ! getservbyname("https/tcp") */ 180#define HTTPS_PORT 443 /* default if ! getservbyname("https/tcp") */
181#ifndef GATE_PORT 181#ifndef GATE_PORT
182#define GATE_PORT 21 /* default if ! getservbyname("ftpgate/tcp") */ 182#define GATE_PORT 21 /* default if ! getservbyname("ftpgate/tcp") */
183#endif 183#endif
184#ifndef GATE_SERVER 184#ifndef GATE_SERVER
185#define GATE_SERVER "" /* default server */ 185#define GATE_SERVER "" /* default server */