summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorTaco Hoekwater <taco@elvenkind.com>2011-06-04 12:11:22 +0000
committerTaco Hoekwater <taco@elvenkind.com>2011-06-04 12:11:22 +0000
commit34cb0fd03499f7bbd965a913ad36707781998d0d (patch)
tree200ab3c2f62e0127ae4887cc145e6874ce0ad411 /Master/texmf-dist/tex
parent50fd342f4452f4e85a09d11222ec3bac6ecb1e51 (diff)
texmfcnf setting got lost
git-svn-id: svn://tug.org/texlive/trunk@22772 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/context/base/l-file.lua4
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