From 6984cca61ece007de3b292278d5787d728e54c6b Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Thu, 22 Jan 2004 15:53:48 +0000 Subject: ensure insmod will try to access correct filename according to 2.4->2.6 compat mapping --- mdk-stage1/modules.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mdk-stage1/modules.c b/mdk-stage1/modules.c index 3789e12d9..20b7c5bb6 100644 --- a/mdk-stage1/modules.c +++ b/mdk-stage1/modules.c @@ -189,15 +189,13 @@ static enum insmod_return insmod_archived_file(const char * mod_name, char * opt if (i != 0) return INSMOD_FAILED; - strcat(final_name, mod_name); + strcat(final_name, module_name); if (kernel_version() <= 4) { - strcat(final_name, ".o"); rc = insmod_call(final_name, options); } else { void *file; unsigned long len; - strcat(final_name, ".ko"); file = grab_file(final_name, &len); if (!file) { -- cgit v1.2.1