Re: [PATCH/RFC] Bugfix for AIX tmpfile creation
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 23, 2008, 22:29 UTC
- Message-ID
- <7vy74vg4zq.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <1214256821-3169-1-git-send-email-patrick.higgins@cexp.com>
Hmm, we have quite a few calls to mkstemp(), so adding the workaround to this specific call site does not scale well as a fix, I am afraid.
Some callers do not want to use the xmkstemp() (because the function always dies upon failure), so working around this bug in xmkstemp() won't solve it either, unfortunately. We would probably need compat/mkstemp.c that wraps problematic mkstemp() on platforms with broken mkstemp() implementation.