Date: Tue, 18 Jan 2000 19:49:56 +0100 (CET) From: Dag-Erling Smørgrav <des@yes.no> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/16183: wu-ftpd "feature" breaks FTP clients Message-ID: <200001181849.TAA55306@des.follo.net>
next in thread | raw e-mail | index | archive | help
>Number: 16183 >Category: ports >Synopsis: wu-ftpd "feature" breaks FTP clients >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jan 18 11:00:02 PST 2000 >Closed-Date: >Last-Modified: >Originator: Dag-Erling Smørgrav >Release: FreeBSD 4.0-CURRENT i386 >Organization: Yes Interactive >Environment: ports-current. >Description: wu-ftpd 2.6.0 and newer do not list directories in the output from the NLST command. While this is strictly not a bug according to RFC959 (and the developers claim it is in fact the correct interpretation), it is radically differs from historical behavior and is a major break of POLA. Many FTP clients, including the FreeBSD, NetBSD and Solaris FTP clients, fail in various ways when confronted with wu-ftpd. FreeBSD and NetBSD will perform normally except for file name completion, whereas Solaris totally fails to list files in response to the "ls" command. >How-To-Repeat: Connect to any FTP server running wu-ftpd 2.6.0 or newer, issue the NLST command, compare the output with that of STAT. >Fix: Add the following patch in ports/wu-ftpd/patches: --- src/ftpd.c.orig Tue Jan 18 19:35:30 2000 +++ src/ftpd.c Tue Jan 18 19:38:50 2000 @@ -6346,7 +6346,6 @@ } goto globfree; } - if ((st.st_mode & S_IFMT) != S_IFDIR) { if (dout == NULL) { dout = dataconn("file list", (off_t) - 1, "w"); if (dout == NULL) @@ -6369,7 +6368,6 @@ byte_count_out++; } #endif - } } if (dout != NULL) { >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200001181849.TAA55306>