pxe: chdir to Path Prefix (DHCP Option 210) to open configsyslinux-5.02-pre2
commitbf8ffe81f7247de7582cc23722212b7d5f795e52
authorMatt Fleming <matt.fleming@intel.com>
Wed, 13 Feb 2013 12:34:52 +0000 (13 12:34 +0000)
committerMatt Fleming <matt.fleming@intel.com>
Wed, 13 Feb 2013 12:34:52 +0000 (13 12:34 +0000)
treeded1b6260b4b56c532b6a707c0c655db14827354
parent88f8ad6a7721a7c1dcb5fc756906f8ccd90f6cfe
pxe: chdir to Path Prefix (DHCP Option 210) to open config

This is an addition to commit 282fe9da42e ("elflink: Use
CurrentDirName for initial PATH if valid") which tried to fix the case
when booting PXELINUX with DHCP options 209 and 210. Unfortunately,
it's not useful to play games with PATH and we really do need to chdir
to the Path Prefix before opening the config file because the config
file may be specified with a path relative to the Path Prefix.

Just do the chdir() and be done with it.

Signed-off-by: Matt Fleming <matt.fleming@intel.com>
core/fs/pxe/pxe.c