From owner-cvs-src@FreeBSD.ORG Wed Jul 9 06:15:33 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 40D2F37B401; Wed, 9 Jul 2003 06:15:33 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D1D5043FBD; Wed, 9 Jul 2003 06:15:32 -0700 (PDT) (envelope-from yar@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h69DFW0U029536; Wed, 9 Jul 2003 06:15:32 -0700 (PDT) (envelope-from yar@repoman.freebsd.org) Received: (from yar@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h69DFWO9029535; Wed, 9 Jul 2003 06:15:32 -0700 (PDT) Message-Id: <200307091315.h69DFWO9029535@repoman.freebsd.org> From: Yar Tikhiy Date: Wed, 9 Jul 2003 06:15:32 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/libexec/ftpd ftpcmd.y X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2003 13:15:33 -0000 yar 2003/07/09 06:15:32 PDT FreeBSD src repository Modified files: libexec/ftpd ftpcmd.y Log: Improve error handling in getline(): - always check the return value from getc(3) for EOF; - if the attempt to read the TELNET command byte has returned EOF, exit from the loop instead of using the EOF value as a normal character. MFC after: 1 week Revision Changes Path 1.53 +7 -4 src/libexec/ftpd/ftpcmd.y