Date: Sun, 19 Dec 2004 05:14:29 +0000 (UTC) From: Garance A Drosehn <gad@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/lpr/lpd printjob.c Message-ID: <200412190514.iBJ5ETNX020505@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412190514.iBJ5ETNX020505>
