]> git.feebdaed.xyz Git - 0xmirror/git.git/commit
banned.h: ban mktemp(3)
authorRené Scharfe <l.s.r@web.de>
Sat, 6 Dec 2025 13:29:43 +0000 (14:29 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 6 Dec 2025 22:28:13 +0000 (07:28 +0900)
commit7bef658135944d26acf3e1ec9316ca11f4369cf8
tree2c68f8dc25f49bcf972b9501838847eed8572da8
parent47bf14750eee7e43e12d20414d3698f203245a35
banned.h: ban mktemp(3)

Older versions of mktemp(3) generate easily guessable file names.  The
function checks if the generated name is used, which is unreliable, as
a file with that name might then be created by some other process before
we can do it ourselves.  The function was dropped from POSIX due to its
security problems.  Forbid its use.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
banned.h