From owner-freebsd-bugs Sun Jun 16 2: 0:12 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 71C8D37B408 for ; Sun, 16 Jun 2002 02:00:03 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g5G903896225; Sun, 16 Jun 2002 02:00:03 -0700 (PDT) (envelope-from gnats) Received: from atg-smtp1.t-com.ne.jp (atg-smtp1.t-com.ne.jp [61.211.178.68]) by hub.freebsd.org (Postfix) with ESMTP id 6421737B403; Sun, 16 Jun 2002 01:56:04 -0700 (PDT) Received: from myhost (217.net218219036.t-com.ne.jp [218.219.36.217]) by atg-smtp1.t-com.ne.jp (8.11.4/3.7W-02051213) with SMTP id g5G8u2S25691; Sun, 16 Jun 2002 17:56:02 +0900 (JST) Message-Id: <200206160856.g5G8u2S25691@atg-smtp1.t-com.ne.jp> Date: Sun, 16 Jun 2002 17:56:02 +0900 (JST) From: kattyo@abk.nu To: FreeBSD-gnats-submit@FreeBSD.org Cc: dan@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/39362: ftpd(8) cannot NLST with options in some conditions Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 39362 >Category: bin >Synopsis: ftpd(8) cannot NLST with options in some conditions >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jun 16 02:00:03 PDT 2002 >Closed-Date: >Last-Modified: >Originator: TANAKA Hiroyuki >Release: FreeBSD 4.6-RC i386 >Organization: Nippon Insitutit of Technology >Environment: System: FreeBSD konpeito.local 4.6-RC FreeBSD 4.6-RC #1: Wed May 22 22:13:44 JST 2002 root@konpeito.local:/usr/src/sys/compile/konpeito i386 and /usr/libexec/ftpd >Description: ftpd(8) fail NLST command with following conditions: 1. previous data file transfer was regular file in binary mode (TYPE I or TYPE L) and transfered successfuly 2. NLST with any options: ex. NLST -a This bug may be appered in rev.1.72, changing file transfer to use mmap. >How-To-Repeat: % ftp localhost Name (localhost: anonymous): foo Password: ftp> bin ftp> get a-exist-file ftp> nlist -a >Fix: --- orig/ftpd.c Sun Jun 16 10:44:16 2002 +++ ftpd.c Sun Jun 16 10:46:04 2002 @@ -1820,6 +1820,7 @@ } } + transflag = 0; reply(226, "Transfer complete."); return (0); } >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message