From owner-freebsd-audit Wed Jul 4 16:56: 1 2001 Delivered-To: freebsd-audit@freebsd.org Received: from mail.rpi.edu (mail.rpi.edu [128.113.22.40]) by hub.freebsd.org (Postfix) with ESMTP id DC24237B406 for ; Wed, 4 Jul 2001 16:55:58 -0700 (PDT) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.acs.rpi.edu [128.113.24.47]) by mail.rpi.edu (8.11.3/8.11.3) with ESMTP id f64NsQS18244; Wed, 4 Jul 2001 19:54:41 -0400 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: References: Date: Wed, 4 Jul 2001 19:54:24 -0400 To: freebsd-print@bostonradio.org From: Garance A Drosihn Subject: Re: lpr/ ctlinfo, second cut of new routine Cc: freebsd-audit@FreeBSD.org Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 8:49 PM -0400 6/27/01, Garance A Drosihn wrote: >The following patch would add a new source file to lpr/common_source, >called ctlinfo.c. While I have several plans for ctlinfo.c, this >first cut just replaces calls to link & unlink in lpd/recvjob.c >with a call to a new routine which does a whole bunch of work. > >The basic goal here is to sanity and safety-check all the lines in >an incoming 'control file' ("cf*") for jobs coming into lpd from >remote hosts. I have what I hope to be the final version of the patch available at: http://people.freebsd.org/~gad/lpr/ctlinfo.diff or ftp://freefour.acs.rpi.edu/pub/bsdlpr/ctlinfo.diff This is tested on i386, and compiles fine on alpha. I've made a number of improvements from my previous patch, based on a few days of testing on other platforms here at RPI. This will be going into production at RPI this week (Thursday morning, if I get up early enough...). I've done a fair amount of checking at this point, so I expect this is pretty much ready to go. Assuming I don't get into any surprises when I put this in production at RPI, I hope to commit this to current sometime next weekend (the 14th or so). MFC to stable a few weeks later. The patch is just under 1000 lines (almost all of which is in the new ctlinfo.c file), so I thought it was a bit too much to include in this message. -- Garance Alistair Drosehn = gad@eclipse.acs.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message