From owner-cvs-src@FreeBSD.ORG Sun Dec 19 05:14:29 2004 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 805B916A4CE; Sun, 19 Dec 2004 05:14:29 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 646FE43D3F; Sun, 19 Dec 2004 05:14:29 +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 iBJ5ETvB020506; Sun, 19 Dec 2004 05:14:29 GMT (envelope-from gad@repoman.freebsd.org) Received: (from gad@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id iBJ5ETNX020505; Sun, 19 Dec 2004 05:14:29 GMT (envelope-from gad) Message-Id: <200412190514.iBJ5ETNX020505@repoman.freebsd.org> From: Garance A Drosehn Date: Sun, 19 Dec 2004 05:14:29 +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/lpd printjob.c 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: Sun, 19 Dec 2004 05:14:29 -0000 gad 2004-12-19 05:14:29 UTC FreeBSD src repository Modified files: usr.sbin/lpr/lpd printjob.c Log: Call umask() before opening the lock-file for a queue, to make sure the file will be created with the right access, if the call to open() does create it. Also fix the other call to umask() to turn off "write others", just as a matter of general safety. PR: 74418 MFC after: 4 days Revision Changes Path 1.63 +2 -1 src/usr.sbin/lpr/lpd/printjob.c