Commit 340e009e authored by Kyle Evans's avatar Kyle Evans
Browse files

makesyscalls: stop trying to remove . and .. in cleanup

lfs.dir() will include these entries, but os.remove() cannot remove them
for obvious reasons.
parent c8077ccd
......@@ -100,7 +100,9 @@ local function cleanup()
if cleantmp then
if lfs.dir(tmpspace) then
for fname in lfs.dir(tmpspace) do
os.remove(tmpspace .. "/" .. fname)
if fname ~= "." and fname ~= ".." then
os.remove(tmpspace .. "/" .. fname))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment