summaryrefslogtreecommitdiff
path: root/tex/generic
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2023-03-06 15:17:09 +0100
committerContext Git Mirror Bot <phg@phi-gamma.net>2023-03-06 15:17:09 +0100
commite12b4fabeb0ce3ce6d256b54250cf38a8f940561 (patch)
treeb574cb45fe8a416e60c912a8e2d754abdad3b63c /tex/generic
parent23b5ef45e7939a00addff726d02d6c29243177af (diff)
downloadcontext-e12b4fabeb0ce3ce6d256b54250cf38a8f940561.tar.gz
2023-03-06 14:47:00
Diffstat (limited to 'tex/generic')
-rw-r--r--tex/generic/context/luatex/luatex-fonts-merged.lua22
1 files changed, 18 insertions, 4 deletions
diff --git a/tex/generic/context/luatex/luatex-fonts-merged.lua b/tex/generic/context/luatex/luatex-fonts-merged.lua
index b7d60eefb..a66ee0752 100644
--- a/tex/generic/context/luatex/luatex-fonts-merged.lua
+++ b/tex/generic/context/luatex/luatex-fonts-merged.lua
@@ -1,6 +1,6 @@
-- merged file : c:/data/develop/context/sources/luatex-fonts-merged.lua
-- parent file : c:/data/develop/context/sources/luatex-fonts.lua
--- merge date : 2023-02-23 21:23
+-- merge date : 2023-03-06 14:44
do -- begin closure to overcome local limits and interference
@@ -2952,9 +2952,23 @@ function file.withinbase(path)
end
return true
end
-local symlinkattributes=lfs.symlinkattributes
-function lfs.readlink(name)
- return symlinkattributes(name,"target") or nil
+do
+ local symlinktarget=lfs.symlinktarget
+ local symlinkattributes=lfs.symlinkattributes
+ if symlinktarget then
+ function lfs.readlink(name)
+ local target=symlinktarget(name)
+ return name~=target and name or nil
+ end
+ elseif symlinkattributes then
+ function lfs.readlink(name)
+ return symlinkattributes(name,"target") or nil
+ end
+ else
+ function lfs.readlink(name)
+ return nil
+ end
+ end
end
end -- closure