Re: [PATCH v2 0/5] ban mktemp(3)
- From
Jeff King <peff@peff.net>
- Date
- Dec 8, 2025, 20:33 UTC
- Message-ID
- <20251208203307.GD216526@coredump.intra.peff.net>
- In-Reply-To
- <64e62623-b911-4ddd-a481-05191853c0a6@web.de>
On Sat, Dec 06, 2025 at 02:21:06PM +0100, René Scharfe wrote:
Show 6 quoted lines
> mktemp(3) is insecure and POSIX.1-2008 no longer specifies it. Stop > using it. > > Changes since v1: > - add comment regarding return values of git_mkdstemps_mode() > - add patch to drop trivialized gitmkdtemp()
Thanks, this all looks reasonable to me. I don't have a system without mkdtemp() to test the meson change on, but I can confirm it builds on Linux for me using meson. ;)
-Peff