From owner-freebsd-stable Thu May 17 6:52: 0 2001 Delivered-To: freebsd-stable@freebsd.org Received: from mail.yadt.co.uk (yadt.demon.co.uk [158.152.4.134]) by hub.freebsd.org (Postfix) with SMTP id 706F637B422 for ; Thu, 17 May 2001 06:51:37 -0700 (PDT) (envelope-from davidt@yadt.co.uk) Received: (qmail 91530 invoked from network); 17 May 2001 13:51:29 -0000 Received: from gattaca.local.yadt.co.uk (HELO mail.gattaca.yadt.co.uk) (qmailr@10.0.0.2) by xfiles.yadt.co.uk with SMTP; 17 May 2001 13:51:29 -0000 Received: (qmail 48235 invoked by uid 1000); 17 May 2001 13:51:29 -0000 Date: Thu, 17 May 2001 14:51:29 +0100 From: David Taylor To: Jamie Norwood Cc: freebsd-stable@freebsd.org Subject: Re: Administrative tag a possibility? Message-ID: <20010517145129.A47513@gattaca.yadt.co.uk> Mail-Followup-To: Jamie Norwood , freebsd-stable@freebsd.org References: <00df01c0dec9$ef270b00$0b01000a@apollo> <3B03C76F.4403BC31@math.missouri.edu> <20010517093127.A95460@mushhaven.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="EeQfGwPcQSOJBaQU" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010517093127.A95460@mushhaven.net>; from mistwolf@mushhaven.net on Thu, May 17, 2001 at 09:31:27 -0400 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --EeQfGwPcQSOJBaQU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Uh, please don't use BCC to send to the list, it makes replying a tad impossible. On Thu, 17 May 2001, Jamie Norwood wrote: > On Thu, May 17, 2001 at 07:43:27AM -0500, Stephen Montgomery-Smith wrote: > >=20 > > That seems a little dangerous - perhaps some of the files will have > > md5 appearing in other lines for other reasons, and that would mess > > up this simple grep. Perhaps a more complicated tag in the file would > > be more appropriate. >=20 > Not to mention that, AFAIK, once you add the checksum to the file, the=20 > checksum would be different because the file is no longer the same, ne? > I am not aware of a way to include a checksum in the file being checked. There was a method in the message you quoted: ----- # Some config file # $FreeBSD: blah$ # $MD5-Checksum: abcdefg8273912$ # Foo a=3D1 b=3D2 ----- # (this is a Perl regexp, but it's possible with grep, somehow, I'm sure. CHECKSUM=3D`grep -v \$MD5-Checksum(: [0-9a-fA-F]*)?\$$ | md5` and it's easy enough to use sed to replace $MD5-Checksum$ lines with CHECKSUM, and also compare the two... CVS could even be setup to automagically insert the checksum, as it does with the $FreeBSD$ lines currently.. (Doing so whilst observing the various weird -ki flags to disable $$ expansions would be more difficult, however). --=20 David Taylor davidt@yadt.co.uk --EeQfGwPcQSOJBaQU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7A9dhfIqKXSsJ/xERAoQOAKCHMOSUxVWB2k+E5mo20K3Rnxz6ZwCgtRHi BsYWwgBXKsU3TSG5BWQx9aU= =Ai1P -----END PGP SIGNATURE----- --EeQfGwPcQSOJBaQU-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message