lkml.org 
[lkml]   [2011]   [Jun]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Linux 3.0-rc3
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.

OG.



\
 
 \ /
  Last update: 2011-06-15 09:19    [W:0.056 / U:0.736 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site