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:
parent
c8077ccd70
commit
340e009ecc
@ -100,7 +100,9 @@ local function cleanup()
|
|||||||
if cleantmp then
|
if cleantmp then
|
||||||
if lfs.dir(tmpspace) then
|
if lfs.dir(tmpspace) then
|
||||||
for fname in lfs.dir(tmpspace) do
|
for fname in lfs.dir(tmpspace) do
|
||||||
os.remove(tmpspace .. "/" .. fname)
|
if fname ~= "." and fname ~= ".." then
|
||||||
|
os.remove(tmpspace .. "/" .. fname))
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user