Subject: bin/29017: Re: bin/29017: pkg_add generates broken nlist commands to ftp server
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: Thomas Klausner <wiz@NetBSD.org>
List: netbsd-bugs
Date: 01/20/2005 11:37:01
The following reply was made to PR bin/29017; it has been noted by GNATS.

From: Thomas Klausner <wiz@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: Matthias Buelow <mkb@incubus.de>
Subject: Re: bin/29017: pkg_add generates broken nlist commands to ftp server
Date: Thu, 20 Jan 2005 12:36:27 +0100

 --zaRBsRFn0XYhEU69
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 How about the attached patch?
  Thomas
 
 --zaRBsRFn0XYhEU69
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="pkg_install.diff"
 
 Index: ftpio.c
 ===================================================================
 RCS file: /cvsroot/src/usr.sbin/pkg_install/lib/ftpio.c,v
 retrieving revision 1.66
 diff -u -r1.66 ftpio.c
 --- ftpio.c	6 Jan 2005 11:56:39 -0000	1.66
 +++ ftpio.c	20 Jan 2005 11:35:35 -0000
 @@ -645,7 +645,7 @@
  				(int)(s-pattern), pattern, tmpname);
  	}
  
 -	rc = ftp_cmd(buf, "\n(550|226).*\n"); /* catch errors */
 +	rc = ftp_cmd(buf, "\n(450|550|226).*\n"); /* catch errors */
  	if (rc != 226) {
  		if (Verbose)
  			warnx("nlist failed!");
 
 --zaRBsRFn0XYhEU69--