Calling unlinkat() with results of dirfd() without checking the value
In log.c, we call unlink(dirfd(dir.handle), ...)
without checking that dirfd()
returned valid fd.
Technically, it doesn't really matter, as unlink()
at will fail, but clang-scan-19 complains about this and it's an easy fix.