mirror of
https://github.com/acpica/acpica/
synced 2025-02-01 14:15:31 +03:00
iASL: Support absolute pathnames for include files.
Add support for absolute pathnames within the Include operator. previously, only relative pathnames were supported.
This commit is contained in:
parent
70bf57ce49
commit
61a66a6a92
@ -191,7 +191,18 @@ FlOpenLocalFile (
|
||||
char *Mode)
|
||||
{
|
||||
|
||||
strcpy (StringBuffer, Gbl_DirectoryPath);
|
||||
StringBuffer[0] = 0;
|
||||
|
||||
/* Check for an absolute pathname */
|
||||
|
||||
if ((LocalName[0] != '/') && /* Forward slash */
|
||||
(LocalName[0] != '\\') && /* backslash (Win) */
|
||||
(LocalName[1] != ':')) /* Device name (Win) */
|
||||
{
|
||||
/* The include file path is relative, prepend the directory path */
|
||||
|
||||
strcat (StringBuffer, Gbl_DirectoryPath);
|
||||
}
|
||||
strcat (StringBuffer, LocalName);
|
||||
|
||||
DbgPrint (ASL_PARSE_OUTPUT, "FlOpenLocalFile: %s\n", StringBuffer);
|
||||
|
Loading…
x
Reference in New Issue
Block a user