lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <BANLkTi=XrH2sBkk-3fbrY4Worj3SW1W1AQ@mail.gmail.com>
Date:	Tue, 14 Jun 2011 15:08:41 +0200
From:	Denys Vlasenko <vda.linux@...glemail.com>
To:	Alexey Dobriyan <adobriyan@...il.com>
Cc:	Linus Torvalds <torvalds@...ux-foundation.org>,
	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: Linux 3.0-rc3

On Tue, Jun 14, 2011 at 2:55 PM, Alexey Dobriyan <adobriyan@...il.com> wrote:
> On Tue, Jun 14, 2011 at 3:15 PM, Denys Vlasenko
> <vda.linux@...glemail.com> wrote:
>> I've got a patch for my project to fix parsing of kernel version which
>> has only two numbers. Basically,
>
> Why does your project care about kernel version?

It's depmod. It was assuming that if argument starts with three digits,
it's a kernel version:

        /* If a version is provided, then that kernel version's module directory
         * is used, rather than the current kernel version (as returned by
         * "uname -r").  */
        if (*argv && sscanf(*argv, "%u.%u.%u", &tmp, &tmp, &tmp) == 3) {
                version = *argv++;
        } else {
                uname(&uts);
                version = uts.release;
        }


-- 
vda
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ