From owner-cvs-src-old@FreeBSD.ORG Mon Jan 3 21:28:35 2011 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1C93B106564A for ; Mon, 3 Jan 2011 21:28:35 +0000 (UTC) (envelope-from csjp@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 0B3A98FC1C for ; Mon, 3 Jan 2011 21:28:35 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p03LSYKH081770 for ; Mon, 3 Jan 2011 21:28:34 GMT (envelope-from csjp@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p03LSYhj081769 for cvs-src-old@freebsd.org; Mon, 3 Jan 2011 21:28:34 GMT (envelope-from csjp@repoman.freebsd.org) Message-Id: <201101032128.p03LSYhj081769@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to csjp@repoman.freebsd.org using -f From: "Christian S.J. Peron" Date: Mon, 3 Jan 2011 21:28:12 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/libexec/ftpd ftpd.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jan 2011 21:28:35 -0000 csjp 2011-01-03 21:28:12 UTC FreeBSD src repository Modified files: libexec/ftpd ftpd.c Log: SVN rev 216932 on 2011-01-03 21:28:12Z by csjp expand checkuser() to support the propagation of error codes back to the caller. Currently, checkuser() does not differentiate between the failure to open the file and the absence of a user in the file. Check to see if there was an error opening the file. If there are any errors, terminate the connection. Currently, the only exception to this rule is ENOENT, since there is nothing that says the /etc/ftpuser and /etc/ftpchroot has to exist. MFC after: 3 weeks Revision Changes Path 1.217 +27 -8 src/libexec/ftpd/ftpd.c