]> git.feebdaed.xyz Git - 0xmirror/git.git/commit
compat: use git_mkdtemp()
authorRené Scharfe <l.s.r@web.de>
Sat, 6 Dec 2025 13:27:47 +0000 (14:27 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 6 Dec 2025 22:28:12 +0000 (07:28 +0900)
commit5ecd3590a3052820eeb3f1d6764584c537b68938
treec7dde0d40f36956b3c643d95dc28f362300ed490
parente1ecf0dd6897eae1594b7e9345605b8f88485b95
compat: use git_mkdtemp()

A file might appear at the path returned by mktemp(3) before we call
mkdir(2).  Use the more robust git_mkdtemp() instead, which retries a
number of times and doesn't need to call lstat(2).

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/mkdtemp.c