]> Kevux Git Server - rit/commit
wrapper: simplify xmkstemp()
authorRené Scharfe <l.s.r@web.de>
Mon, 17 Nov 2025 19:42:55 +0000 (20:42 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 17 Nov 2025 21:53:09 +0000 (13:53 -0800)
commitf18aa68861538e93421699aa366d6691a85258b6
treede0ebf2037526b747462e237d03a0fe9231c4429
parentf368df439b31b422169975cc3c95f7db6a46eada
wrapper: simplify xmkstemp()

Call xmkstemp_mode() instead of duplicating its error handling code.
This switches the implementation from the system's mkstemp(3) to our own
git_mkstemp_mode(), which works just as well.

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