From robert@fledge.watson.org  Thu Aug 24 11:33:12 2000
Return-Path: <robert@fledge.watson.org>
Received: from fledge.watson.org (fledge.watson.org [204.156.12.50])
	by hub.freebsd.org (Postfix) with ESMTP id 964E337B423
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 24 Aug 2000 11:33:11 -0700 (PDT)
Received: (from robert@localhost)
	by fledge.watson.org (8.9.3/8.9.3) id OAA34938;
	Thu, 24 Aug 2000 14:33:11 -0400 (EDT)
	(envelope-from robert)
Message-Id: <200008241833.OAA34938@fledge.watson.org>
Date: Thu, 24 Aug 2000 14:33:11 -0400 (EDT)
From: rwatson@freebsd.org
Sender: robert@fledge.watson.org
Reply-To: rwatson@freebsd.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: ftpd cannot retrieve contents of devices
X-Send-Pr-Version: 3.2

>Number:         20824
>Category:       bin
>Synopsis:       ftpd returns, "ad0s1a: not a plain file."
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    yar
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 24 11:40:00 PDT 2000
>Closed-Date:    Fri Feb 07 02:10:13 PST 2003
>Last-Modified:  Fri Feb 07 02:10:13 PST 2003
>Originator:     Robert Watson
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
FreeBSD Project
>Environment:

5.0-CURRENT
Native ftpd server

>Description:

ftp> cd /dev
ftp> get ad0s1a
local: ad0s1a remote: ad0s1a
550 ad0s1a: not a plain file.

Given that "more" works on the device, it seems that I should be able
to retrieve the contents using ftpd.  Mirroring files this way is quite
useful.  This might be a result of using sendfile(), and might also
affect Apache for the same reason.  Not sure about that diagnosis though.

>How-To-Repeat:

See above.

>Fix:

Patch not attached.


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->yar 
Responsible-Changed-By: johan 
Responsible-Changed-When: Wed Aug 21 12:52:07 PDT 2002 
Responsible-Changed-Why:  
Over to Yar who might know what to do with this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20824 
State-Changed-From-To: open->patched 
State-Changed-By: yar 
State-Changed-When: Fri Jan 31 05:20:18 PST 2003 
State-Changed-Why:  
Fixed in CURRENT. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20824 
State-Changed-From-To: patched->closed 
State-Changed-By: yar 
State-Changed-When: Fri Feb 7 02:09:37 PST 2003 
State-Changed-Why:  
Fixed in STABLE as well. 

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