From: <lm...@bi...> - 2006-11-03 20:01:54
|
On Fri, Nov 03, 2006 at 11:32:15AM -0800, Andreas Kupries wrote: > > > Well the code abouve works on all our boxes which include redhat, debian, > > suse, etc. And on the architectures. Seems like the following would work > > more generally (needs tweaking for /lib64): > > > > regexp {libc-[0-9]+\.[0-9]+} [glob /lib/libc-*] vers > > > > Lots less code and given that our stuff seems to work I suspect it's > > safe. Anyone see any reason why that wouldn't work? > > My paranoia about file names getting manipulated to provide misleading version > info. Paranoia is good, we've got a lot of it here at BitMover. But paranoia with no basis needs to be traded off against a relatively large chunk of code that could contain (or gain) bugs vs a tiny fragment of code that is pretty obviously working on a wide set of platforms. -- --- Larry McVoy lm at bitmover.com http://www.bitkeeper.com |