summaryrefslogtreecommitdiff
path: root/tex/context/base/supp-fil.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/supp-fil.lua')
-rw-r--r--tex/context/base/supp-fil.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/tex/context/base/supp-fil.lua b/tex/context/base/supp-fil.lua
index 91fa446b9..a2c0b5d7d 100644
--- a/tex/context/base/supp-fil.lua
+++ b/tex/context/base/supp-fil.lua
@@ -111,11 +111,11 @@ local function readfilename(specification,backtrack,treetoo)
if not fnd then
if isfile(name) then
if trace_files then
- report_files("found local: %s",fname)
+ report_files("found local: %s",name)
end
fnd = name
end
- if backtrack then
+ if not fnd and backtrack then
local fname = name
for i=1,backtrack,1 do
fname = "../" .. fname