[patch] fix kernel version parsing when it has more than 3 components

Mike Frysinger vapier@gentoo.org
Sat Jul 7 08:59:00 GMT 2007


with kernel versions having more than 3 components being common place, a bug 
was noticed in _dl_discover_osversion() where it would parse all parts of the 
kernel version rather than just consuming the first 3.  for example, the 
function would return incorrect values when running on "2.6.21.5" but would 
work properly on "2.6.21".  the attached patch fixes this by bailing out 
after processing the first three components.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20070707/1b4f5f1a/attachment.sig>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: glibc-handle-long-kernel-versions.patch
Type: text/x-diff
Size: 502 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20070707/1b4f5f1a/attachment.bin>


More information about the Libc-alpha mailing list