[syslinux] CONFIG and appended directory; current directory

Gene Cumm
Sun, 19 Sep 2010 17:23:34 -0000

On Wed, Sep 15, 2010 at 02:23, Gene Cumm <gene.cumm at gmail.com>
wrote:
> I've been testing the CONFIG directive and config.c32 module and
I've
> found a possible issue. ?It seems to ignore the directory of "/"
but
> can otherwise go up and down a directory tree perfectly. ?Executing
> COM32 chdir("/") does seem to work.

Appending "/" as the target directory for config.c32 or CONFIG calls
pm_is_config_file().  In pm_is_config_file(),  before mangle_name(),
*p == "/ ".  mangle_name() changes "/ " to "",
hence the issue.

I'm going to try to look at this this afternoon.

--
-Gene