From: Andy Lutomirski <luto@MIT.EDU>
To: Olivier Galibert <galibert@pobox.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
Denys Vlasenko <vda.linux@googlemail.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Linux 3.0-rc3
Date: Wed, 15 Jun 2011 15:29:05 -0400 [thread overview]
Message-ID: <4DF90801.4090904@mit.edu> (raw)
In-Reply-To: <20110615071555.GA26721@dspnet.fr>
On 06/15/2011 03:15 AM, Olivier Galibert wrote:
> On Tue, Jun 14, 2011 at 10:59:41AM -0700, Linus Torvalds wrote:
>> On Tue, Jun 14, 2011 at 5:15 AM, Denys Vlasenko
>> <vda.linux@googlemail.com> wrote:
>>>
>>> I've got a patch for my project to fix parsing of kernel version which
>>> has only two numbers. Basically,
>>>
>>> - scanf(ver, "%u.%u.%u",&a,&b,&c)
>>> + sscanf(ver, "%u.%u",&a,&b)
>>
>> Please just fix it.
>>
>> The projects that care about kernel version are buggy in so many ways
>> that it's not funny.
>
> His problem is recognizing "kernel version" vs. "filename" as a
> parameter.
> depmod [ -e ] [ -FSystem.map ] [ -n ] [ -v ] [ version ] [ filename... ]
>
> Oh course, that's a stupid interface, but probably a hard one to
> change.
Well, the man page says that the version parameter is used to find
/lib/modules/version. So why not check if /lib/modules/version exists
and, if not, try the filename?
/me is still annoyed that some expensive commercial software over here
won't start if you have funny characters like '+' in your kernel version.
--Andy
next prev parent reply other threads:[~2011-06-15 19:29 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-13 23:01 Linux 3.0-rc3 Linus Torvalds
2011-06-14 11:07 ` gmack
2011-06-14 12:15 ` Denys Vlasenko
2011-06-14 12:38 ` Maarten Lankhorst
2011-06-14 12:55 ` Alexey Dobriyan
2011-06-14 13:08 ` Denys Vlasenko
2011-06-14 17:59 ` Linus Torvalds
2011-06-15 7:15 ` Olivier Galibert
2011-06-15 19:29 ` Andy Lutomirski [this message]
2011-06-15 19:44 ` Linus Torvalds
2011-06-15 19:51 ` Linus Torvalds
2011-06-14 19:45 ` [patch] Re: Linux 3.0-rc3 (APM fix) Randy Dunlap
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4DF90801.4090904@mit.edu \
--to=luto@mit.edu \
--cc=galibert@pobox.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@linux-foundation.org \
--cc=vda.linux@googlemail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.