[Bug 3847] New: linux kernel 3.0 will use two digit in uname instead of three digit

bugzilla at busybox.net bugzilla at busybox.net
Fri Jun 10 07:06:45 UTC 2011


https://bugs.busybox.net/show_bug.cgi?id=3847

           Summary: linux kernel 3.0 will use two digit in uname instead
                    of three digit
           Product: Busybox
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P5
         Component: Other
        AssignedTo: unassigned at busybox.net
        ReportedBy: arekm at maven.pl
                CC: busybox-cvs at busybox.net
   Estimated Hours: 0.0


linux kernel 3.0 will use two digit in uname instead of three digit thus
modutils/depmod.c check becomes invalid:

    if (*argv && sscanf(*argv, "%u.%u.%u", &tmp, &tmp, &tmp) == 3) {
        version = *argv++;
    } else {


Solution is to use:
   if (*argv && sscanf(*argv, "%u.%u", &tmp, &tmp) == 2) {
which should work for 2 and 3 digit versions.

Same fix was commited to module-init-tools.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list