commit | 6e0bfd11ac1aa36713d9a65542ae86dd607ae374 | [log] [tgz] |
---|---|---|
author | Denys Vlasenko <vda.linux@googlemail.com> | Thu Mar 15 14:36:28 2012 +0100 |
committer | Denys Vlasenko <vda.linux@googlemail.com> | Thu Mar 15 14:36:28 2012 +0100 |
tree | 08ce0476d17a163b7f5a1391325eab86126bc592 | |
parent | 61e7aad9fa1a6a5bd5a586e6276767caf12b53f2 [diff] |
Fix lame kernel version checking code The code "os_release[0] >= '3'" is not good for any finer-grained checks such as "kernel >= 3.2.1". Let's proactively fix it. * strace.c: Change os_release from string to integer. (get_os_release): Parse uname.release to KERNEL_VERSION representation. (init): Convert kernel version check to KERNEL_VERSION. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>