From owner-freebsd-ipfw Sun Feb 27 14:10:27 2000 Delivered-To: freebsd-ipfw@freebsd.org Received: from reyim.ne.mediaone.net (reyim.ne.mediaone.net [24.218.251.241]) by hub.freebsd.org (Postfix) with ESMTP id 3740237B6D9 for ; Sun, 27 Feb 2000 14:10:20 -0800 (PST) (envelope-from bloom@acm.org) Received: from acm.org (localhost [127.0.0.1]) by reyim.ne.mediaone.net (8.9.3/8.9.3) with ESMTP id RAA00510; Sun, 27 Feb 2000 17:08:31 -0500 (EST) (envelope-from bloom@acm.org) Message-ID: <38B9A05F.57D2DD6D@acm.org> Date: Sun, 27 Feb 2000 17:08:31 -0500 From: Jim Bloom Reply-To: bloom@acm.org X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 4.0-CURRENT i386) X-Accept-Language: en MIME-Version: 1.0 To: Ruslan Ermilov Cc: jsegovia@cnc.una.py, freebsd-ipfw@FreeBSD.ORG Subject: Re: cpp change breaks ipfw References: <200002271345.JAA29398@alpha.cnc.una.py> <38B98413.CB910261@acm.org> <20000227221631.A70300@relay.ucb.crimea.ua> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ipfw@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Ruslan Ermilov wrote: > > On Sun, Feb 27, 2000 at 03:07:47PM -0500, Jim Bloom wrote: > > Thanks for the hint. Now all I need to do is modify ipfw to pass additional > > arguments to the preprocessor. > > > What's wrong with > echo cpp -traditional $@ > ipfw-preproc > ipfw -p ipfw-preproc ... That's what I did (including adding a chmod) as a temporary way to get around the problem. If that is the recommend solution to the problem, please commit the following patch to ipfw.8. This will at least alert people to the fact that this problem exists in 4.0. Thanks. Jim Bloom bloom@acm.org Index: ipfw.8 =================================================================== RCS file: /users/ncvs/src/sbin/ipfw/ipfw.8,v retrieving revision 1.62 diff -u -r1.62 ipfw.8 --- ipfw.8 2000/02/10 14:25:26 1.62 +++ ipfw.8 2000/02/27 21:58:12 @@ -1021,6 +1021,13 @@ .Ar tee rule should not be immediately accepted, but should continue going through the rule list. This may be fixed in a later version. +.Pp +The preprocessor +.Xr cpp 1 +no longer works correctly. It requires the argument +.Ar -traditional +to avoid problems with spacing. There is no way for this program to pass +the argument directly. .Sh AUTHORS .An Ugen J. S. Antsilevich , .An Poul-Henning Kamp , To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ipfw" in the body of the message