summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/file-job.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mkiv/file-job.lua')
-rw-r--r--tex/context/base/mkiv/file-job.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/tex/context/base/mkiv/file-job.lua b/tex/context/base/mkiv/file-job.lua
index fd9a5a120..2c854b504 100644
--- a/tex/context/base/mkiv/file-job.lua
+++ b/tex/context/base/mkiv/file-job.lua
@@ -46,7 +46,7 @@ local dirname = file.dirname
local is_qualified_path = file.is_qualified_path
local cleanpath = resolvers.cleanpath
-local inputstack = resolvers.inputstack
+local toppath = resolvers.toppath
local resolveprefix = resolvers.resolve
local hasscheme = url.hasscheme
@@ -789,7 +789,7 @@ end
local function autoname(name)
if name == "*" then
- name = nameonly(inputstack[#inputstack] or name)
+ name = nameonly(toppath() or name)
end
return name
end