diff options
author | Matt Fleming <matt.fleming@intel.com> | 2012-03-13 12:23:56 +0000 |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2012-03-23 16:56:16 +0000 |
commit | cb05ff3e5a6aef2d1da2e4397b08e7eedde8c077 (patch) | |
tree | a6ccab00e2cc9e5838ca325164a873fcb52c633c /core/include/fs.h | |
parent | 0105cae269ed2488a2a99f1548740ca99326cc4a (diff) | |
download | syslinux-cb05ff3e5a6aef2d1da2e4397b08e7eedde8c077.tar.gz |
core: Abstract search_config() into search_dirs()
The core currently abuses search_config() in order to locate
ldlinux.c32. The problem with this is that search_config() updates
ConfigName with the realpath of the file on every invocation. If we've
previously set ConfigName search_config() will overwrite this value.
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'core/include/fs.h')
-rw-r--r-- | core/include/fs.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/include/fs.h b/core/include/fs.h index fd8e4834..93eb8180 100644 --- a/core/include/fs.h +++ b/core/include/fs.h @@ -218,8 +218,9 @@ int generic_chdir_start(void); void generic_mangle_name(char *, const char *); /* loadconfig.c */ -int search_config(struct com32_filedata *filedata, - const char *search_directores[], const char *filenames[]); +int search_dirs(struct com32_filedata *filedata, + const char *search_directores[], const char *filenames[], + char *realname); int generic_open_config(struct com32_filedata *filedata); /* close.c */ |