summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/file-res.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mkiv/file-res.lua')
-rw-r--r--tex/context/base/mkiv/file-res.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/tex/context/base/mkiv/file-res.lua b/tex/context/base/mkiv/file-res.lua
index 8b16ff7da..3ed7abc8d 100644
--- a/tex/context/base/mkiv/file-res.lua
+++ b/tex/context/base/mkiv/file-res.lua
@@ -64,7 +64,7 @@ local function readfilename(specification,backtrack,treetoo)
local fname = names[i]
for i=1,backtrack,1 do
fname = "../" .. fname
- local pname = path and (path .. "/" .. fname) or fname
+ local pname = path and (path ~= "") and (path .. "/" .. fname) or fname
if isfile(pname) then
if trace_files then
report_files("found by backtracking: %s",pname)