From owner-freebsd-bugs@FreeBSD.ORG Fri Mar 23 10:10:02 2007 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6BA6B16A407 for ; Fri, 23 Mar 2007 10:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 3434713C4D0 for ; Fri, 23 Mar 2007 10:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l2NAA1oY016379 for ; Fri, 23 Mar 2007 10:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l2NAA19r016374; Fri, 23 Mar 2007 10:10:01 GMT (envelope-from gnats) Resent-Date: Fri, 23 Mar 2007 10:10:01 GMT Resent-Message-Id: <200703231010.l2NAA19r016374@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Dmitri Alenitchev Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2B6A516A400 for ; 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 ; 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 To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: bin/110701: [patch] ftpd(8): don't advertise version X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Dmitri Alenitchev List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Mar 2007 10:10:02 -0000 >Number: 110701 >Category: bin >Synopsis: [patch] ftpd(8): don't advertise version >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Mar 23 10:10:01 GMT 2007 >Closed-Date: >Last-Modified: >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 -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: >Unformatted: