aboutsummaryrefslogtreecommitdiff
path: root/sys/tools
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2021-01-27 17:46:15 +0000
committerKyle Evans <kevans@FreeBSD.org>2021-09-25 01:50:39 +0000
commit340e009ecc00e5e74d58920ca909968dc7e88af1 (patch)
treefbae5534f2c44a8c76d5c6e63be9c97c7f4d3e7b /sys/tools
parentc8077ccd70cfcbcccb752e89b848f098abcb9309 (diff)
downloadsrc-340e009ecc00e5e74d58920ca909968dc7e88af1.tar.gz
src-340e009ecc00e5e74d58920ca909968dc7e88af1.zip
Diffstat (limited to 'sys/tools')
-rw-r--r--sys/tools/makesyscalls.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/tools/makesyscalls.lua b/sys/tools/makesyscalls.lua
index bedece17c162..811101305ec4 100644
--- a/sys/tools/makesyscalls.lua
+++ b/sys/tools/makesyscalls.lua
@@ -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