Date: Tue, 22 Oct 1996 08:40:02 -0700 (PDT) From: Marc Slemko <marcs@znep.com> To: freebsd-bugs Subject: Re: bin/1864: FTP case mapping during MGET Message-ID: <199610221540.IAA06066@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/1864; it has been noted by GNATS. From: Marc Slemko <marcs@znep.com> To: A.Nati@cisco.it Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: bin/1864: FTP case mapping during MGET Date: Tue, 22 Oct 1996 09:28:22 -0600 (MDT) On Tue, 22 Oct 1996 A.Nati@cisco.it wrote: > >Description: > > When transferring with mget and case mapping on, the resulting file > name is wrong; the original file-name is padded with other characters > following the original name. Below is a patch against -stable that will fix this one. The code doesn't seem to have changed in -current. I would suggest that there are likely other cases where the exact same thing happens; the whole case conversion code in ftp seems like a big mess, sometimes using one way of doing things, sometimes another. *** /usr/src/usr.bin/ftp/cmds.c Sat Aug 26 01:27:46 1995 --- cmds.c Tue Oct 22 09:17:35 1996 *************** *** 742,747 **** --- 742,748 ---- if (mcase) { for (tp2 = tmpbuf; ch = *tp++;) *tp2++ = isupper(ch) ? tolower(ch) : ch; + *tp2 = '\0'; tp = tmpbuf; } if (ntflag) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610221540.IAA06066>