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

lfs.dir() will include these entries, but os.remove() cannot remove them
for obvious reasons.
This commit is contained in:
Kyle Evans 2021-01-27 11:46:15 -06:00
parent c8077ccd70
commit 340e009ecc

View File

@ -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))
end
end
end