Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/pkg_install/lib Address PR pkg/24744 by Jarmo Jaakk...
details: https://anonhg.NetBSD.org/src/rev/379da4d09e68
branches: trunk
changeset: 579565:379da4d09e68
user: hubertf <hubertf%NetBSD.org@localhost>
date: Fri Mar 18 00:01:11 2005 +0000
description:
Address PR pkg/24744 by Jarmo Jaakkola <jarmo.jaakkola%iki.fi@localhost>:
* ftp.fi.netbsd.org returns "257" in return to a "cd" command, accept that
(in addition to 250 and 550). Seems to be allowed per RFC 959.
* Make buffer for reply bigger (not too big, as it may hit performance).
diffstat:
usr.sbin/pkg_install/lib/ftpio.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (32 lines):
diff -r 286805416163 -r 379da4d09e68 usr.sbin/pkg_install/lib/ftpio.c
--- a/usr.sbin/pkg_install/lib/ftpio.c Thu Mar 17 22:30:17 2005 +0000
+++ b/usr.sbin/pkg_install/lib/ftpio.c Fri Mar 18 00:01:11 2005 +0000
@@ -1,8 +1,8 @@
-/* $NetBSD: ftpio.c,v 1.66 2005/01/06 11:56:39 agc Exp $ */
+/* $NetBSD: ftpio.c,v 1.67 2005/03/18 00:01:11 hubertf Exp $ */
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: ftpio.c,v 1.66 2005/01/06 11:56:39 agc Exp $");
+__RCSID("$NetBSD: ftpio.c,v 1.67 2005/03/18 00:01:11 hubertf Exp $");
#endif
/*-
@@ -139,7 +139,7 @@
expect(int fd, const char *str, int *ftprc)
{
int rc;
- char buf[90];
+ char buf[256];
#if EXPECT_DEBUG
char *vstr;
#endif /* EXPECT_DEBUG */
@@ -654,7 +654,7 @@
}
/* Sync - don't remove */
- rc = ftp_cmd("cd .\n", "\n(550|250).*\n");
+ rc = ftp_cmd("cd .\n", "\n(550|250|257).*\n");
if (rc != 250) {
warnx("chdir failed!");
unlink(tmpname); /* remove clutter */
Home |
Main Index |
Thread Index |
Old Index