~ubuntu-branches/ubuntu/saucy/procps/saucy-updates

« back to all changes in this revision

Viewing changes to debian/patches/ubuntu-handle-short-kernel-versions.patch

  • Committer: Steve Langasek
  • Date: 2011-10-27 07:46:06 UTC
  • mfrom: (2.1.14 sid)
  • Revision ID: vorlon@debian.org-20111027074606-wn1i46boq2ti8p1z
Merge Debian version 1:3.2.8-11

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Description: Quieten warning when kernel version is less than three digits
2
 
Author: Andy Whitcroft <apw@canonical.com>
3
 
Forwarded: no
4
 
Last-Update: 2011-06-10
5
 
 
6
 
Index: b/proc/version.c
7
 
===================================================================
8
 
--- a/proc/version.c
9
 
+++ b/proc/version.c
10
 
@@ -48,7 +48,7 @@
11
 
       exit(1);
12
 
     }
13
 
     fclose(fp);
14
 
-    if (sscanf(buf, "Linux version %d.%d.%d", &x, &y, &z) < 3)
15
 
+    if (sscanf(buf, "Linux version %d.%d.%d", &x, &y, &z) < 2)
16
 
        fprintf(stderr,         /* *very* unlikely to happen by accident */
17
 
                "Non-standard uts for running kernel:\n"
18
 
         "release %s=%d.%d.%d gives version code %d\n",