<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/compat/mkdtemp.c, branch main</title>
<subtitle>Fork of git SCM with my patches.</subtitle>
<id>http://git.kilabit.info/git/atom?h=main</id>
<link rel='self' href='http://git.kilabit.info/git/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/'/>
<updated>2025-12-06T22:28:13Z</updated>
<entry>
<title>compat: remove gitmkdtemp()</title>
<updated>2025-12-06T22:28:13Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2025-12-06T13:35:39Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=10bba537c4c23e713af05be700748c6a3c25bf68'/>
<id>urn:sha1:10bba537c4c23e713af05be700748c6a3c25bf68</id>
<content type='text'>
gitmkdtemp() has become a trivial wrapper around git_mkdtemp().  Remove
this now unnecessary layer of indirection.

Signed-off-by: René Scharfe &lt;l.s.r@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>compat: use git_mkdtemp()</title>
<updated>2025-12-06T22:28:12Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2025-12-06T13:27:47Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=5ecd3590a3052820eeb3f1d6764584c537b68938'/>
<id>urn:sha1:5ecd3590a3052820eeb3f1d6764584c537b68938</id>
<content type='text'>
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 &lt;l.s.r@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Fix gitmkdtemp: correct test for mktemp() return value</title>
<updated>2010-02-25T20:08:22Z</updated>
<author>
<name>Filippo Negroni</name>
<email>fnegroni@flexerasoftware.com</email>
</author>
<published>2010-02-25T10:01:31Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=1f80c2afb0d826567a9a5a1c3ce76c28883e0e96'/>
<id>urn:sha1:1f80c2afb0d826567a9a5a1c3ce76c28883e0e96</id>
<content type='text'>
In gitmkdtemp, the return value of mktemp is not tested correctly.
mktemp() always returns its 'template' argument, even upon failure.
An error is signalled by making the template an empty string.

Signed-off-by: Filippo Negroni &lt;fnegroni@flexerasoftware.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Define compat version of mkdtemp for systems lacking it</title>
<updated>2007-10-21T02:52:21Z</updated>
<author>
<name>Shawn O. Pearce</name>
<email>spearce@spearce.org</email>
</author>
<published>2007-10-20T20:03:49Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=ca5bb5d5390e4ec709ca3e11c451c58a836d4ee6'/>
<id>urn:sha1:ca5bb5d5390e4ec709ca3e11c451c58a836d4ee6</id>
<content type='text'>
Solaris 9 doesn't have mkdtemp() so we need to emulate it for the
rsync transport implementation.  Since Solaris 9 is lacking this
function we can also reasonably assume it is not available on
Solaris 8 either.  The new Makfile definition NO_MKDTEMP can be
set to enable the git compat version.

Signed-off-by: Shawn O. Pearce &lt;spearce@spearce.org&gt;
</content>
</entry>
</feed>
