Date: Thu, 17 May 2001 14:51:29 +0100 From: David Taylor <davidt@yadt.co.uk> To: Jamie Norwood <mistwolf@mushhaven.net> Cc: freebsd-stable@freebsd.org Subject: Re: Administrative tag a possibility? Message-ID: <20010517145129.A47513@gattaca.yadt.co.uk> In-Reply-To: <20010517093127.A95460@mushhaven.net>; from mistwolf@mushhaven.net on Thu, May 17, 2001 at 09:31:27 -0400 References: <00df01c0dec9$ef270b00$0b01000a@apollo> <3B03C76F.4403BC31@math.missouri.edu> <20010517093127.A95460@mushhaven.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010517145129.A47513>