* sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
authorUlrich Drepper <drepper@redhat.com>
Sat, 15 Sep 2007 22:54:33 +0000 (22:54 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 15 Sep 2007 22:54:33 +0000 (22:54 +0000)
parse more than three parts of the version number.

ChangeLog
sysdeps/unix/sysv/linux/dl-osinfo.h

index fe3049b..7c9474f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-11-01  Daniel Jacobowitz  <dan@debian.org>
+
+       * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
+       parse more than three parts of the version number.
+
 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
 
        * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
index e3c605e..082790f 100644 (file)
@@ -121,7 +121,7 @@ _dl_discover_osversion (void)
       version <<= 8;
       version |= here;
 
-      if (*cp++ != '.')
+      if (*cp++ != '.' || parts == 3)
        /* Another part following?  */
        break;
     }