Re: Linux 2.4.33.2

From: Nick Warne
Date: Tue Aug 29 2006 - 17:17:41 EST


On Tuesday 29 August 2006 22:09, Patrick J. Volkerding wrote:
> Nick Warne wrote:
> > On Sunday 27 August 2006 17:28, Petri Kaukasoina wrote:
> >> On Sun, Aug 27, 2006 at 03:50:29PM +0100, Nick Warne wrote:
> >>> Good question - all I can find is the slackware package
> >>
> >> I guess this is what you are looking for:
> >>
> >> ftp://ftp.slackware.com/pub/slackware/slackware-current/source/l/glibc/g
> >>lib c.kernelversion.diff.gz
> >
> > Good god - what a mess...
>
> I agree, even though I'm not sure if you mean the original .h algorithm,
> my fix, or glibc's system of reducing a Linux kernel version to a single
> integer for easy comparison, though.
>
> I'm glad my hack is getting some review. It's of the "ugly but probably
> reliable" variety. More so than if I'd tried to fix the loop below
> it... I felt it much safer to just fix the input string to give it
> those "at most three parts" that it was designed for.

My 'my god' bit was to glibc - not the fix! I bow down to you guys, seeing
what you had to do to suss it and get to work...

Where on earth did the assumption of 'three dots' come from anyway?

Nick
--
Every program has two purposes:
one for which it was written and another for which it wasn't.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/