From dmitri@opay.ru  Fri Mar 23 10:09:51 2007
Return-Path: <dmitri@opay.ru>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 2B6A516A400
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 23 Mar 2007 10:09:51 +0000 (UTC)
	(envelope-from dmitri@opay.ru)
Received: from opay.ru (opay.ru [81.19.78.124])
	by mx1.freebsd.org (Postfix) with ESMTP id E421513C4BF
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 23 Mar 2007 10:09:50 +0000 (UTC)
	(envelope-from dmitri@opay.ru)
Received: by opay.ru (Postfix, from userid 1001)
	id C17771EA58E; Fri, 23 Mar 2007 13:15:54 +0300 (MSK)
Message-Id: <20070323101554.C17771EA58E@opay.ru>
Date: Fri, 23 Mar 2007 13:15:54 +0300 (MSK)
From: Dmitri Alenitchev <dmitri@dworlds.ru>
Reply-To: Dmitri Alenitchev <dmitri@dworlds.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [patch] ftpd(8): don't advertise version
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         110701
>Category:       bin
>Synopsis:       [patch] ftpd(8): don't advertise version
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 23 10:10:01 GMT 2007
>Closed-Date:    Fri Mar 23 10:11:41 GMT 2007
>Last-Modified:  Fri Mar 23 10:11:41 GMT 2007
>Originator:     Dmitri Alenitchev
>Release:        FreeBSD 6.2-STABLE i386
>Organization:
Digital Worlds J.S.C.
>Environment:
>Description:
	do not advertise version in the ftp banner, because there is no reason to
>How-To-Repeat:
>Fix:

	

--- ftpd.diff begins here ---
Index: ftpd.c
===================================================================
RCS file: /home/ncvs/src/libexec/ftpd/ftpd.c,v
retrieving revision 1.211
diff -u -r1.211 ftpd.c
--- ftpd.c	9 Feb 2007 17:18:39 -0000	1.211
+++ ftpd.c	23 Mar 2007 09:11:46 -0000
@@ -102,7 +102,6 @@
 
 #include <stdarg.h>
 
-static char version[] = "Version 6.00LS";
 #undef main
 
 extern	off_t restart_point;
@@ -641,7 +640,7 @@
 	hostname[MAXHOSTNAMELEN - 1] = '\0';
 #endif
 	if (hostinfo)
-		reply(220, "%s FTP server (%s) ready.", hostname, version);
+		reply(220, "%s FTP server ready.", hostname);
 	else
 		reply(220, "FTP server ready.");
 	for (;;)
@@ -2370,7 +2369,6 @@
 
 	if (hostinfo) {
 		lreply(211, "%s FTP server status:", hostname);
-		printf("     %s\r\n", version);
 	} else
 		lreply(211, "FTP server status:");
 	printf("     Connected to %s", remotehost);
--- ftpd.diff ends here ---


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: remko 
State-Changed-When: Fri Mar 23 10:11:40 UTC 2007 
State-Changed-Why:  
We will not resolve this. If someone wants to remove the version 
information please feel free to use the patch and remove it. But this is 
not the supported case. Thanks for the submission though! 

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