about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/dl-osinfo.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2007-09-15 22:54:33 +0000
committerUlrich Drepper <drepper@redhat.com>2007-09-15 22:54:33 +0000
commit3524efe0bd5148131e6097bf90191e1872f5c65a (patch)
tree6a121122e6954509d6ae58437844cae68a50f6bd /sysdeps/unix/sysv/linux/dl-osinfo.h
parent267c54dcef41ab0ee383b208117b35b3e9d5665c (diff)
downloadglibc-3524efe0bd5148131e6097bf90191e1872f5c65a.tar.gz
glibc-3524efe0bd5148131e6097bf90191e1872f5c65a.tar.xz
glibc-3524efe0bd5148131e6097bf90191e1872f5c65a.zip
* sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
	parse more than three parts of the version number.
Diffstat (limited to 'sysdeps/unix/sysv/linux/dl-osinfo.h')
-rw-r--r--sysdeps/unix/sysv/linux/dl-osinfo.h2
1 files changed, 1 insertions, 1 deletions
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;
     }