cvs commit: src/usr.sbin/lpr/lpd printjob.c

Garance A Drosehn gad at FreeBSD.org
Sat Dec 18 21:14:29 PST 2004


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


More information about the cvs-all mailing list