[syslinux] [PATCH 06/12] elflink: Look for syslinux.cfg
H. Peter Anvin
hpa at zytor.com
Mon Mar 14 15:34:21 PDT 2011
On 03/09/2011 08:00 AM, Matt Fleming wrote:
> From: Matt Fleming <matt.fleming at linux.intel.com>
>
> Add syslinux.cfg to the list of configuration file names to check for
> when the config parser searches for configuration files.
>
> Signed-off-by: Matt Fleming <matt.fleming at linux.intel.com>
> ---
> com32/elflink/ldlinux/readconfig.c | 4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/com32/elflink/ldlinux/readconfig.c b/com32/elflink/ldlinux/readconfig.c
> index 9857233..18c1183 100644
> --- a/com32/elflink/ldlinux/readconfig.c
> +++ b/com32/elflink/ldlinux/readconfig.c
> @@ -1049,6 +1049,10 @@ static int parse_one_config(const char *filename)
> if (f)
> goto config_found;
>
> + f = fopen("syslinux.cfg", "r");
> + if (f)
> + goto config_found;
> +
> return -1;
> config_found:
> parse_config_file(f);
This should, at least eventually, use the routine in the filesystem core
for searching for the config file. This is probably *not* in the
elflink branch since the elflink branch is relatively stale against
trunk; but it should be merged in, of course.
-hpa
More information about the Syslinux
mailing list