cvs commit: src/usr.sbin/lpr/common_source ctlinfo.c

Garance A Drosehn gad at FreeBSD.org
Thu Dec 30 16:18:42 PST 2004


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


More information about the cvs-all mailing list