The branch main has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=340e009ecc00e5e74d58920ca909968dc7e88af1
commit 340e009ecc00e5e74d58920ca909968dc7e88af1 Author: Kyle Evans <kev...@freebsd.org> AuthorDate: 2021-01-27 17:46:15 +0000 Commit: Kyle Evans <kev...@freebsd.org> CommitDate: 2021-09-25 01:50:39 +0000 makesyscalls: stop trying to remove . and .. in cleanup lfs.dir() will include these entries, but os.remove() cannot remove them for obvious reasons. --- sys/tools/makesyscalls.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 _______________________________________________ dev-commits-src-main@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/dev-commits-src-main To unsubscribe, send any mail to "dev-commits-src-main-unsubscr...@freebsd.org"