From owner-cvs-all@FreeBSD.ORG Fri Dec 31 00:18:42 2004 Return-Path: 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 BB4F616A4CE; Fri, 31 Dec 2004 00:18:42 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id A82F843D55; Fri, 31 Dec 2004 00:18:42 +0000 (GMT) (envelope-from gad@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id iBV0IgtE052821; Fri, 31 Dec 2004 00:18:42 GMT (envelope-from gad@repoman.freebsd.org) Received: (from gad@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id iBV0IgGB052820; Fri, 31 Dec 2004 00:18:42 GMT (envelope-from gad) Message-Id: <200412310018.iBV0IgGB052820@repoman.freebsd.org> From: Garance A Drosehn Date: Fri, 31 Dec 2004 00:18:42 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.sbin/lpr/common_source ctlinfo.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Dec 2004 00:18:42 -0000 gad 2004-12-31 00:18:42 UTC FreeBSD src repository Modified files: usr.sbin/lpr/common_source ctlinfo.c Log: Do more extensive checking of the userid field which is read in from the control-file for each print job. This is partially because the previous checks still let through some characters which would cause trouble for other applications which try to process the resulting userid -- such as accounting programs. But the main reason is to handle the case where some remote host sends a print job where the given userid is an uppercase-version of the real userid. For that case, lpd will now check for uppercase letters in the userid. If there are any, it will check to see if the given userid (with the uppercase letters) is a valid one. If it is *not* valid, then lpd will change the userid to all-lowercase right when the job is received. MFC after: 2 weeks Revision Changes Path 1.10 +46 -7 src/usr.sbin/lpr/common_source/ctlinfo.c