elflink: Use CurrentDirName for initial PATH if valid
commit282fe9da42ebb0c34cf4256972a8c07ba5542e23
authorMatt Fleming <matt.fleming@intel.com>
Thu, 7 Feb 2013 17:56:24 +0000 (7 17:56 +0000)
committerMatt Fleming <matt.fleming@intel.com>
Thu, 7 Feb 2013 18:09:13 +0000 (7 18:09 +0000)
tree2ff13c2e116199fce488499032f8ee14db6eb572
parent04f40bc55ed4f39d6c625b017bb16907f7d50c05
elflink: Use CurrentDirName for initial PATH if valid

commit c250a42263c8 ("elflink: Set PATH to the directory containing
ldlinux.c32") made the mistake of thinking that CurrentDirName doesn't
contain useful data for PXELINUX, it may do. If a user specifies a
Path Prefix (DHCP option 210) we enter load_env32() with that path as
the current working directory. If that path is thrown away instead of
being used for PATH we may fail to load a config file as specified
with Configuration File Option (DHCP option 209).

Signed-off-by: Matt Fleming <matt.fleming@intel.com>
com32/lib/Makefile
core/elflink/load_env32.c