procps-ng/procps-3.2.8-kernel-3.0.patch

13 lines
586 B
Diff
Raw Permalink Normal View History

diff -Nru procps-3.2.8.orig/proc/version.c procps-3.2.8/proc/version.c
--- procps-3.2.8.orig/proc/version.c 2011-09-18 17:05:50.489893190 +0200
+++ procps-3.2.8/proc/version.c 2011-09-18 17:07:03.757693608 +0200
@@ -39,7 +39,7 @@
if (uname(&uts) == -1) /* failure implies impending death */
exit(1);
- if (sscanf(uts.release, "%d.%d.%d", &x, &y, &z) < 3)
+ if (sscanf(uts.release, "%d.%d.%d", &x, &y, &z) < 2)
fprintf(stderr, /* *very* unlikely to happen by accident */
"Non-standard uts for running kernel:\n"
"release %s=%d.%d.%d gives version code %d\n",