strace/strace-4.7-os-release-detect-openmamba.patch

15 lines
390 B
Diff
Raw Normal View History

--- strace-4.7.orig/strace.c 2012-04-16 18:22:19.000000000 +0200
+++ strace-4.7/strace.c 2012-11-05 16:53:18.494816999 +0100
@@ -1432,6 +1432,11 @@
break;
while (*p >= '0' && *p <= '9')
p++;
+ if (*p != '.') {
+ rel = (rel << 8);
+ if (rel >= KERNEL_VERSION(1,0,0))
+ break;
+ }
if (*p != '.')
error_msg_and_die("Bad OS release string: '%s'", u.release);
p++;