[syslinux] [PATCH 1/1] COMBOOT API: Add get current working directory call to most

H. Peter Anvin hpa at zytor.com
Sun Nov 9 16:40:49 PST 2008


Gene Cumm wrote:
> From: Gene Cumm <gene.cumm at gmail.com>
> 
> COMBOOT API: Add get current working directory call to most
> 
> Signed-off-by: Gene Cumm <gene.cumm at gmail.com>
> 
> ---
> 
> Adds an API call to obtain the current working directory.  EXTLINUX
> will not return the correct value yet however SYSLINUX, ISOLINUX, and
> PXELINUX will return the correct value.  For the moment, EXTLINUX will
> ONLY return "/" (null-terminated of course).  In SYSLINUX and
> ISOLINUX, it presets the CurrentDirName string to "/" for safety.
> PXELINUX copies TFTP Prefix to CurrentDirName (minus the trailing
> "/").
> 

Okay, this isn't quite right, especially in the case of the TFTP prefix;
the TFTP prefix may not end in '/', especially when the TFTP server is
not a Unix system.  Therefore I think this call should return a prefix
(including a final '/' in case of the filesystem-based variants.)

	-hpa




More information about the Syslinux mailing list