<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/git.git/test-mktemp.c, branch v1.8.0.2</title>
<subtitle>Git
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/git.git/atom?h=v1.8.0.2</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/atom?h=v1.8.0.2'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/'/>
<updated>2010-12-22T03:51:17Z</updated>
<entry>
<title>Improve error messages when temporary file creation fails</title>
<updated>2010-12-22T03:51:17Z</updated>
<author>
<name>Arnout Engelen</name>
<email>arnouten@bzzt.net</email>
</author>
<published>2010-12-18T21:28:00Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=6cf6bb3e47ac2f667fa0b27a4222e903ff6fb77c'/>
<id>urn:sha1:6cf6bb3e47ac2f667fa0b27a4222e903ff6fb77c</id>
<content type='text'>
Before, when creating a temporary file failed, a generic 'Unable to create
temporary file' message was printed. In some cases this could lead to
confusion as to which directory should be checked for correct permissions etc.

This patch adds the template for the temporary filename to the error message,
converting it to an absolute path if needed. A test verifies that the template
is indeed printed when pointing to a nonexistent or unwritable directory.

A copy of the original template is made in case mkstemp clears the template.

Signed-off-by: Arnout Engelen &lt;arnouten@bzzt.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
