From owner-freebsd-bugs Tue Oct 22 08:40:04 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id IAA06094 for bugs-outgoing; Tue, 22 Oct 1996 08:40:04 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id IAA06066; Tue, 22 Oct 1996 08:40:02 -0700 (PDT) Date: Tue, 22 Oct 1996 08:40:02 -0700 (PDT) Message-Id: <199610221540.IAA06066@freefall.freebsd.org> To: freebsd-bugs Cc: From: Marc Slemko Subject: Re: bin/1864: FTP case mapping during MGET Reply-To: Marc Slemko Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR bin/1864; it has been noted by GNATS. From: Marc Slemko 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) {