1
0
mirror of https://github.com/git/git.git synced 2025-03-30 19:50:22 +00:00

Merge branch 'jc/mkstemp-more-careful-error-reporting' into maint

* jc/mkstemp-more-careful-error-reporting:
  xmkstemp(): avoid showing truncated template more carefully
This commit is contained in:
Junio C Hamano 2013-01-08 11:16:58 -08:00
commit 480640eafc

View File

@ -229,7 +229,7 @@ int xmkstemp(char *template)
int saved_errno = errno; int saved_errno = errno;
const char *nonrelative_template; const char *nonrelative_template;
if (!template[0]) if (strlen(template) != strlen(origtemplate))
template = origtemplate; template = origtemplate;
nonrelative_template = absolute_path(template); nonrelative_template = absolute_path(template);