diff options
Diffstat (limited to 'Master/texmf-dist/tex/context/base/l-file.lua')
-rw-r--r-- | Master/texmf-dist/tex/context/base/l-file.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/context/base/l-file.lua b/Master/texmf-dist/tex/context/base/l-file.lua index 3fea3b0a7c4..66a14dd5765 100644 --- a/Master/texmf-dist/tex/context/base/l-file.lua +++ b/Master/texmf-dist/tex/context/base/l-file.lua @@ -155,10 +155,12 @@ function file.is_writable(name) os.remove(name) return true end - else + else + local existing = lfs.isfile(name) f = io.open(name,"ab") if f then f:close() + if not existing then os.remove(name) end return true end end |