From owner-cvs-src@FreeBSD.ORG Thu Dec 23 22:44: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 630BF16A4CE; Thu, 23 Dec 2004 22:44:29 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D2C143D46; Thu, 23 Dec 2004 22:44: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 iBNMiTqb089535; Thu, 23 Dec 2004 22:44:29 GMT (envelope-from gad@repoman.freebsd.org) Received: (from gad@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id iBNMiT2L089534; Thu, 23 Dec 2004 22:44:29 GMT (envelope-from gad) Message-Id: <200412232244.iBNMiT2L089534@repoman.freebsd.org> From: Garance A Drosehn Date: Thu, 23 Dec 2004 22:44:28 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_5 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: Thu, 23 Dec 2004 22:44:29 -0000 gad 2004-12-23 22:44:28 UTC FreeBSD src repository Modified files: (Branch: RELENG_5) usr.sbin/lpr/lpd printjob.c Log: MFC 1.63: 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 Revision Changes Path 1.61.4.1 +2 -1 src/usr.sbin/lpr/lpd/printjob.c