Modify OS string parsing to handle a two character OS string.<br />
If a shorter than expected OS string is found, pad a zero on the end and then try the comparison.<br />
---<br />
strace.c | 5 +++++<br />
1 file changed, 5 insertions(+)<br />
<br />
diff --git a/strace.c b/strace.c<br />
index 857136d..2bc8d59 100644<br />
--- a/strace.c<br />
+++ b/strace.c<br />
@@ -1432,6 +1432,11 @@ get_os_release(void)<br />
break;<br />
while (*p >= '0' && *p <= '9')<br />
p++;<br />
+ if (*p == '-' || *p == 0) {<br />
+ rel = (rel << 8);<br />
+ if (rel >= KERNEL_VERSION(1,0,0))<br />
+ break;<br />
+ }<br />
if (*p != '.')<br />
error_msg_and_die("Bad OS release string: '%s'", u.release);<br />
p++;<br />
<hr style="border:dotted 1px silver; width:90%; border:dotted 1px silver;">Please note this email and any attachments are intended exclusively for the use of the company or individual shown as the addressee(s). If you have reason to believe you are not the intended recipient please notify the sender by return email immediately and destroy the message you received without making any copies. Any copying, interference or disclosure of this message is therefore unauthorised and expressly prohibited. Note that any views or opinions presented in this<br />
email are solely those of the author and do not necessarily represent those of Gibson Consulting Services P/L.<br />
We do not warrant that this message is virus free. Please perform your own virus check before opening any attachment.