From owner-cvs-all Fri Jul 12 8:51:30 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 62B0037B405; Fri, 12 Jul 2002 08:51:27 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3955143E75; Fri, 12 Jul 2002 08:51:26 -0700 (PDT) (envelope-from yar@FreeBSD.org) Received: from freefall.freebsd.org (yar@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g6CFpGJU046561; Fri, 12 Jul 2002 08:51:16 -0700 (PDT) (envelope-from yar@freefall.freebsd.org) Received: (from yar@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g6CFpGjI046560; Fri, 12 Jul 2002 08:51:16 -0700 (PDT) Message-Id: <200207121551.g6CFpGjI046560@freefall.freebsd.org> From: Yar Tikhiy Date: Fri, 12 Jul 2002 08:51:16 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/libexec/ftpd ftpd.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG yar 2002/07/12 08:51:16 PDT Modified files: libexec/ftpd ftpd.c Log: Use fgetln(3) to read lines from configuration files (ftpusers, ftphosts.) Thus lines of any length can be handled, unlike before. Don't assume that each line read from the files ends with a newline. As a side effect in inithosts(), don't use automatic buffer at all, utilize malloc(3) when getting local host name instead. PR: misc/21494 Reviewed by: maxim, mikeh MFC after: 1 month Revision Changes Path 1.106 +78 -48 src/libexec/ftpd/ftpd.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message