Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Jun 2000 20:15:33 +0700 (NSS)
From:      Max Khon <fjoe@iclub.nsu.ru>
To:        Dmitry Valdov <dv@dv.ru>
Cc:        current@FreeBSD.ORG
Subject:   Re: ftp client bug
Message-ID:  <Pine.BSF.4.21.0006232014210.32838-100000@iclub.nsu.ru>
In-Reply-To: <Pine.BSF.3.95q.1000623160514.14037A-100000@xkis.kis.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0006232014210.32838-100000>