From 4ebd26f04b32f1b09e0759f1a83437d0b1c4d646 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Wed, 19 Oct 2005 22:36:22 +0000 Subject: [PATCH] Bug #3196: Fix Load foo.so syntax. --- hw/xfree86/loader/loadmod.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hw/xfree86/loader/loadmod.c b/hw/xfree86/loader/loadmod.c index be94694b7..63b9b3d24 100644 --- a/hw/xfree86/loader/loadmod.c +++ b/hw/xfree86/loader/loadmod.c @@ -963,6 +963,11 @@ LoadModule(const char *module, const char *path, const char **subdirlist, ret->filename = xstrdup(found); + /* drop any explicit suffix from the module name */ + p = strchr(name, '.'); + if (p) + *p = '\0'; + /* * now check if the special data object ModuleData is * present.