From nobody@FreeBSD.org  Thu Mar 21 21:44:24 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 2835C37B400
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 21 Mar 2002 21:44:24 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g2M5iOb27151;
	Thu, 21 Mar 2002 21:44:24 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200203220544.g2M5iOb27151@freefall.freebsd.org>
Date: Thu, 21 Mar 2002 21:44:24 -0800 (PST)
From: Chun-Tien Chang <tcs@cyber.cs.ntou.edu.tw>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [ftpd] it can not send a file on NTFS in binary correct!!
X-Send-Pr-Version: www-1.0

>Number:         36189
>Category:       bin
>Synopsis:       [ftpd] it can not send a file on NTFS in binary correct!!
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 21 21:50:00 PST 2002
>Closed-Date:    Thu Aug 01 03:43:17 PDT 2002
>Last-Modified:  Thu Aug 01 03:43:17 PDT 2002
>Originator:     Chun-Tien Chang
>Release:        4.5-STABLE
>Organization:
National Taiwan Ocean University
>Environment:
FreeBSD Kitty.cs.ntou.edu.tw 4.5-STABLE FreeBSD 4.5-STABLE #3: Mon Mar 11 23:52:59 CST 2002     root@Kitty.cs.ntou.edu.tw:/usr/src/sys/compile/KITTY  i386

>Description:
files on a mounted NTFS file system can not be downloaded correct by ftpd in binary mode.

>How-To-Repeat:
Kitty[~]-root# mount
....
/dev/da2s1 on /mnt/da2 (ntfs, local, read-only)
....
Kitty[~]-root# ftp localhost
Trying 127.0.0.1...
Connected to localhost.
220 Kitty.cs.ntou.edu.tw FTP server (Version 6.00LS) ready.
Name (localhost:root): tcs
331 Password required for tcs.
Password:
230 User tcs logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd /mnt/da2/
250 CWD command successful.
ftp> bin
200 Type set to I.
ftp> get boot.ini
local: boot.ini remote: boot.ini
150 Opening BINARY mode data connection for 'boot.ini' (186 bytes).
100% |*********************************************************************************************|   186       00:00 ETA
226 Transfer complete.
186 bytes received in 0.01 seconds (27.15 KB/s)
ftp> bye
221 Goodbye.
Kitty[~]-root# diff boot.ini /mnt/da2/boot.ini 
Binary files boot.ini and /mnt/da2/boot.ini differ



>Fix:
replace ftpd with wu-ftpd
>Release-Note:
>Audit-Trail:

From: Yar Tikhiy <yar@FreeBSD.org>
To: semenu@FreeBSD.org
Cc: freebsd-gnats-submit@FreeBSD.org, tcs@cyber.cs.ntou.edu.tw
Subject: Re: bin/36189: [ftpd] it can not send a file on NTFS in binary correct!!
Date: Tue, 30 Jul 2002 15:34:23 +0400

 Hi Semen,
 
 Could you take a look at this PR?  I believe there were problems
 with sendfile(2) on NTFS.
 
 -- 
 Yar

From: "Semen A. Ustimenko" <semenu@FreeBSD.org>
To: Yar Tikhiy <yar@FreeBSD.org>
Cc: freebsd-gnats-submit@FreeBSD.org, <tcs@cyber.cs.ntou.edu.tw>
Subject: Re: bin/36189: [ftpd] it can not send a file on NTFS in binary
 correct!!
Date: Wed, 31 Jul 2002 09:28:05 +0700 (NOVST)

 Hi!
 
 Yep, this is a known problem, and duplicate bin/34072 already exist.
 
 I've commited a fix to -current. Soon it will be merged to -stable and
 both
 PRs will be closed.
 
 Sorry for taking so long.
 
 On Tue, 30 Jul 2002, Yar Tikhiy wrote:
 
 > Hi Semen,
 >
 > Could you take a look at this PR?  I believe there were problems
 > with sendfile(2) on NTFS.
 >
 
State-Changed-From-To: open->closed 
State-Changed-By: yar 
State-Changed-When: Thu Aug 1 03:41:25 PDT 2002 
State-Changed-Why:  
This is an exact duplicate of the earlier bin/34072. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=36189 
>Unformatted:
