From: Michal Marek <mmarek@suse.cz>
To: Jon Masters <jcm@redhat.com>
Cc: linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org,
Linus Torvalds <torvalds@linux-foundation.org>
Subject: [PATCH] depmod: Handle X.Y kernel versions
Date: Mon, 30 May 2011 15:58:43 +0200 [thread overview]
Message-ID: <1306763923-11892-1-git-send-email-mmarek@suse.cz> (raw)
What a stupid check.
Signed-off-by: Michal Marek <mmarek@suse.cz>
---
Jon, could you please apply this patch and release a new
module-init-tools? Depmod otherwise fails when building a kernel with
version 3.0 (without the third number).
Linus, I'm affraid this ruins the plan for Linux 3.0. Except if you want
to force users to upgrade module-init-tools, with the excuse that 3.0
is a huge step forward and breakage has to be expected ;-).
Michal
---
depmod.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/depmod.c b/depmod.c
index abfb11e..98a5efa 100644
--- a/depmod.c
+++ b/depmod.c
@@ -247,7 +247,7 @@ static int is_version_number(const char *version)
{
unsigned int dummy;
- return (sscanf(version, "%u.%u.%u", &dummy, &dummy, &dummy) == 3);
+ return (sscanf(version, "%u.%u", &dummy, &dummy) == 2);
}
static int old_module_version(const char *version)
--
1.7.4.1
next reply other threads:[~2011-05-30 13:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-30 13:58 Michal Marek [this message]
2011-05-30 14:43 ` Kay Sievers
2011-05-30 14:54 ` Michal Marek
2011-05-31 0:46 ` Jon Masters
2011-05-31 6:02 ` Jon Masters
2011-05-30 18:05 ` david
2011-05-31 9:07 ` Michal Marek
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=1306763923-11892-1-git-send-email-mmarek@suse.cz \
--to=mmarek@suse.cz \
--cc=jcm@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-modules@vger.kernel.org \
--cc=torvalds@linux-foundation.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®