From owner-freebsd-current Fri Jun 23 6:23:38 2000 Delivered-To: freebsd-current@freebsd.org Received: from iclub.nsu.ru (iclub.nsu.ru [193.124.222.66]) by hub.freebsd.org (Postfix) with ESMTP id C4D1A37B9F2 for ; Fri, 23 Jun 2000 06:18:45 -0700 (PDT) (envelope-from fjoe@iclub.nsu.ru) Received: from localhost (fjoe@localhost) by iclub.nsu.ru (8.9.3/8.9.3) with ESMTP id UAA33937; Fri, 23 Jun 2000 20:15:33 +0700 (NSS) (envelope-from fjoe@iclub.nsu.ru) Date: Fri, 23 Jun 2000 20:15:33 +0700 (NSS) From: Max Khon To: Dmitry Valdov Cc: current@FreeBSD.ORG Subject: Re: ftp client bug In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG hi, there! On Fri, 23 Jun 2000, Dmitry Valdov wrote: > There is a problem in ftp client in all FreeBSD versions. It isn't dangerous > but probably should be fixed. > > > uname -a > FreeBSD work.dv.ru 5.0-CURRENT FreeBSD 5.0-CURRENT #6: Thu Jun 22 19:41:50 > MSD 2000 root@work.dv.ru:/usr/src/sys/compile/WORK i386 > > ftp localhost > Connected to localhost. > 220 work.dv.ru FTP server (Version 6.00LS) ready. > Name (localhost:dv): > 331 Password required for dv. > Password: > 230 User dv logged in. > Remote system type is UNIX. > Using binary mode to transfer files. > ftp> site %s > Segmentation fault (core dumped) > > that's easy: --- cmds.c.orig Fri Jun 23 20:12:24 2000 +++ cmds.c Fri Jun 23 19:58:19 2000 @@ -1461,7 +1461,7 @@ len += len1; } } - if (command(buf) == PRELIM) { + if (command("%s", buf) == PRELIM) { while (getreply(0) == PRELIM) continue; } /fjoe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message