summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2004-01-22 15:53:48 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2004-01-22 15:53:48 +0000
commit6984cca61ece007de3b292278d5787d728e54c6b (patch)
tree3f186d0988ae2dafa404610dba6d3b8aeec0b837 /mdk-stage1
parent96b06bef04c04b79a22facf47353009e0e8eb375 (diff)
downloaddrakx-6984cca61ece007de3b292278d5787d728e54c6b.tar
drakx-6984cca61ece007de3b292278d5787d728e54c6b.tar.gz
drakx-6984cca61ece007de3b292278d5787d728e54c6b.tar.bz2
drakx-6984cca61ece007de3b292278d5787d728e54c6b.tar.xz
drakx-6984cca61ece007de3b292278d5787d728e54c6b.zip
ensure insmod will try to access correct filename according to 2.4->2.6 compat mapping
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/modules.c4
1 files changed, 1 insertions, 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) {