Make sure the test for kernel version 2.6.22 will work correctly for the future kernel versions 2.6.220 .. 2.6.229.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7971
This commit is contained in:
Bart Van Assche 2008-05-01 12:35:48 +00:00
parent fd086f9ad2
commit bcb85a68fb

View File

@ -1730,7 +1730,8 @@ static int linux_kernel_2_6_22(void)
release[read] = 0;
VG_(close)(fd);
//VG_(printf)("kernel release = %s\n", release);
result = (VG_(strncmp)(release, "2.6.22", 6) == 0);
result = (VG_(strncmp)(release, "2.6.22", 6) == 0
&& (release[6] < '0' || release[6] > '9'));
}
return result;
}