[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patches] Kernel version parsing patch applied
- To: patches@xxxxxxxxxx
- Subject: [patches] Kernel version parsing patch applied
- From: "Joseph S. Myers" <joseph@xxxxxxxxxxxxxxxx>
- Date: Tue, 1 May 2007 20:39:36 +0000 (UTC)
I've applied <http://sourceware.org/ml/libc-alpha/2003-11/msg00010.html>
to EGLIBC trunk and 2.5 branch. Nowadays this patch (rejected by Ulrich)
is relevant not just to modified kernels but to vanilla kernel.org kernels
2.6.x.y.
Index: sysdeps/unix/sysv/linux/dl-osinfo.h
===================================================================
--- sysdeps/unix/sysv/linux/dl-osinfo.h (revision 2134)
+++ sysdeps/unix/sysv/linux/dl-osinfo.h (working copy)
@@ -126,7 +126,7 @@
version <<= 8;
version |= here;
- if (*cp++ != '.')
+ if (*cp++ != '.' || parts == 3)
/* Another part following? */
break;
}
Index: ChangeLog.eglibc
===================================================================
--- ChangeLog.eglibc (revision 2134)
+++ ChangeLog.eglibc (working copy)
@@ -1,3 +1,8 @@
+2007-05-01 Daniel Jacobowitz <dan@xxxxxxxxxx>
+
+ * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
+ Don't parse more than three parts of the version number.
+
2007-04-30 Joseph Myers <joseph@xxxxxxxxxxxxxxxx>
* soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
--
Joseph S. Myers
joseph@xxxxxxxxxxxxxxxx