Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753336Ab1FOHQB (ORCPT ); Wed, 15 Jun 2011 03:16:01 -0400 Received: from dspnet.fr ([188.165.44.67]:54281 "EHLO dspnet.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752642Ab1FOHQA (ORCPT ); Wed, 15 Jun 2011 03:16:00 -0400 Date: Wed, 15 Jun 2011 09:15:56 +0200 From: Olivier Galibert To: Linus Torvalds Cc: Denys Vlasenko , Linux Kernel Mailing List Subject: Re: Linux 3.0-rc3 Message-ID: <20110615071555.GA26721@dspnet.fr> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 952 Lines: 29 On Tue, Jun 14, 2011 at 10:59:41AM -0700, Linus Torvalds wrote: > On Tue, Jun 14, 2011 at 5:15 AM, Denys Vlasenko > 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. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/