Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Jun 2002 17:56:02 +0900 (JST)
From:      kattyo@abk.nu
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        dan@FreeBSD.org
Subject:   bin/39362: ftpd(8) cannot NLST with options in some conditions
Message-ID:  <200206160856.g5G8u2S25691@atg-smtp1.t-com.ne.jp>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206160856.g5G8u2S25691>