Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Dec 2004 00:18:42 +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/common_source ctlinfo.c
Message-ID:  <200412310018.iBV0IgGB052820@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412310018.iBV0IgGB052820>