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     [EMAIL PROTECTED]:/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 [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to