Date: Tue, 13 Nov 2001 12:03:55 -0500 From: Doug Lee <dgl@visi.com> To: freebsd-stable@freebsd.org Subject: ftpd/smbfs combo producing garbage files--anyone else seen this? Message-ID: <20011113120355.I87301@kirk.sector14.net>
next in thread | raw e-mail | index | archive | help
I submitted a PR on this issue on 11/01/01, but the PR has not been modified since (I'm sure everyone is busy; this isn't a complaint so much as a curious question). This is the main content of the PR. Has anyone else seen this problem occur? >Synopsis: 2872-or-less-byte ftp binary transfer from smbfs share produces garbage >Release: FreeBSD 4.3-STABLE i386 >Environment: System: FreeBSD kirk.sector14.net 4.3-STABLE FreeBSD 4.3-STABLE #5: Mon May 28 01:57:16 EDT 2001 dgl@kirk.sector14.net:/usr/obj/usr/src/sys/CUSTOM i386 Using smbfs-1.4.1 Using standard ftpd; problem does not occur when using wu-ftpd-2.6.1. >Description: Trying to ftp a short file from a mounted smbfs share using binary mode will produce garbage in the garbage file instead of a copy of the file being transferred. The garbage varies from one attempt to the next. This occurs even when using "ftp localhost." It does not occur when transferring from a UFS mount or when transferring in ASCII mode, or when the file is larger than 2872 bytes. The problem does not occur when accessing the smbfs-mounted file by other means (e.g., ex/vi, cp, or even copying to a Windows box via a Samba share). tcpdump during the corrupted ftp shows that data moves correctly from smbfs-mounted machine to FreeBSD but is incorrect by the time it leaves FreeBSD (via ftpd) for its final destination. Reproduced on two machines running different 4.3-STABLE snapshots. Transfers using wu-ftpd-2.6.1 work properly. >How-To-Repeat: Mount a Windows share via smbfs, ftp localhost on the FreeBSD box, log in and change to binary mode, and get a file of2872 bytes or less from somewhere under the smbfs mount point. Compare original and transferred files. >Fix: Workaround: Copy the needed file via means other than ftp to a UFS mount before getting it with FTP, or use a different ftpd. -- Doug Lee dgl@visi.com http://www.visi.com/~dgl Bartimaeus Group doug@bartsite.com http://www.bartsite.com "It's not easy to be crafty and winsome at the same time, and few accomplish it after the age of six." --D. Sutton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011113120355.I87301>