Don't try to do filedir() shenanigans for "DO /absolute/path"

This commit is contained in:
Dianne Skoll
2022-01-20 19:47:04 -05:00
parent 19dc588319
commit e637c20dee

View File

@@ -572,7 +572,7 @@ int DoInclude(ParsePtr p, enum TokTypes tok)
e = VerifyEoln(p);
if (e) Eprint("%s", ErrMsg[e]);
if (tok == T_IncludeR) {
if (tok == T_IncludeR && *(DBufValue(&buf)) != '/') {
/* Relative include: Include relative to dir
containing current file */
if (DBufPuts(&path, FileName) != OK) return E_NO_MEM;