55 lines
1.5 KiB
Plaintext
55 lines
1.5 KiB
Plaintext
|
---
|
||
|
texk/web2c/luatexdir/lua/luatex-core.lua | 28 ++++++----------------------
|
||
|
1 file changed, 6 insertions(+), 22 deletions(-)
|
||
|
|
||
|
--- texk/web2c/luatexdir/lua/luatex-core.lua
|
||
|
+++ texk/web2c/luatexdir/lua/luatex-core.lua 2024-03-21 12:42:17.354996241 +0000
|
||
|
@@ -92,23 +92,14 @@ if kpseused == 1 and (status.shell_escap
|
||
|
if not how then
|
||
|
how = 'r'
|
||
|
end
|
||
|
- local check = true
|
||
|
- if how == 'r' or how == 'rb' or how == '' then
|
||
|
- check = kpse_in_name_ok_silent_extended(name)
|
||
|
- else
|
||
|
- check = kpse_out_name_ok_silent_extended(name)
|
||
|
- end
|
||
|
- local f = nil
|
||
|
- if check then
|
||
|
- f = io_open(name,how)
|
||
|
- if f then
|
||
|
+ local f = io_open(name,how)
|
||
|
+ if f then
|
||
|
if type(how) == 'string' and find(how,'w') then
|
||
|
kpse_recordoutputfile(name,'w')
|
||
|
else
|
||
|
kpse_recordinputfile(name,'r')
|
||
|
end
|
||
|
- end
|
||
|
- end
|
||
|
+ end
|
||
|
return f
|
||
|
end
|
||
|
|
||
|
@@ -121,17 +112,10 @@ if kpseused == 1 and (status.shell_escap
|
||
|
how = 'r'
|
||
|
end
|
||
|
end
|
||
|
- local check = false
|
||
|
- if how == 'r' or how == 'rb' or how == '' then
|
||
|
- check = kpse_in_name_ok_silent_extended(name)
|
||
|
- end
|
||
|
- local f = nil
|
||
|
- if check then
|
||
|
- f = io_open(name,how)
|
||
|
- if f then
|
||
|
+ local f = io_open(name,how)
|
||
|
+ if f then
|
||
|
fio_recordfilename(name,'r')
|
||
|
- end
|
||
|
- end
|
||
|
+ end
|
||
|
return f
|
||
|
end
|
||
|
|