From owner-freebsd-stable Tue Nov 13 9: 4:57 2001 Delivered-To: freebsd-stable@freebsd.org Received: from kirk.sector14.net (66-61-170-163.mtc2.cox.rr.com [66.61.170.163]) by hub.freebsd.org (Postfix) with ESMTP id 6936537B405 for ; Tue, 13 Nov 2001 09:04:54 -0800 (PST) Received: (from dgl@localhost) by kirk.sector14.net (8.11.3/8.11.3) id fADH4n590573 for freebsd-stable@freebsd.org; Tue, 13 Nov 2001 12:04:49 -0500 (EST) (envelope-from dgl) Date: Tue, 13 Nov 2001 12:03:55 -0500 From: Doug Lee To: freebsd-stable@freebsd.org Subject: ftpd/smbfs combo producing garbage files--anyone else seen this? Message-ID: <20011113120355.I87301@kirk.sector14.net> Mail-Followup-To: Doug Lee , freebsd-stable@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Organization: Bartimaeus Group Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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