aboutsummaryrefslogtreecommitdiffstats
path: root/com32/lib/sys/module/common.c
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2012-08-07 10:40:12 +0100
committerMatt Fleming <matt.fleming@intel.com>2012-08-07 10:40:12 +0100
commitd1d03dee6bc961b0afd8dfc68fd35772ecded8be (patch)
tree959159a6c09fa536f640256ac743851644a6ec38 /com32/lib/sys/module/common.c
parent2e512282fd37f7dcb6d33e025e389f11d6d6d42f (diff)
downloadsyslinux-d1d03dee6bc961b0afd8dfc68fd35772ecded8be.tar.gz
syslinux-d1d03dee6bc961b0afd8dfc68fd35772ecded8be.tar.xz
syslinux-d1d03dee6bc961b0afd8dfc68fd35772ecded8be.zip
ldlinux: Use findpath() to lookup filenamessyslinux-5.00-pre7
We should use the same method of opening files as the module code when searching for extensions. In particular, we should search all of PATH. Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'com32/lib/sys/module/common.c')
-rw-r--r--com32/lib/sys/module/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/lib/sys/module/common.c b/com32/lib/sys/module/common.c
index b120bc73..6e63907d 100644
--- a/com32/lib/sys/module/common.c
+++ b/com32/lib/sys/module/common.c
@@ -57,7 +57,7 @@ void print_elf_symbols(struct elf_module *module) {
}
#endif //ELF_DEBUG
-static FILE *findpath(char *name)
+FILE *findpath(char *name)
{
char path[FILENAME_MAX];
FILE *f;