From 3524efe0bd5148131e6097bf90191e1872f5c65a Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 15 Sep 2007 22:54:33 +0000 Subject: * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't parse more than three parts of the version number. --- sysdeps/unix/sysv/linux/dl-osinfo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdeps') diff --git a/sysdeps/unix/sysv/linux/dl-osinfo.h b/sysdeps/unix/sysv/linux/dl-osinfo.h index e3c605e4c7..082790f63b 100644 --- a/sysdeps/unix/sysv/linux/dl-osinfo.h +++ b/sysdeps/unix/sysv/linux/dl-osinfo.h @@ -121,7 +121,7 @@ _dl_discover_osversion (void) version <<= 8; version |= here; - if (*cp++ != '.') + if (*cp++ != '.' || parts == 3) /* Another part following? */ break; } -- cgit 1.4.1