diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-01-02 10:38:25 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-01-02 10:38:25 -0800 |
commit | 9316f910f7f2435e617968ec6999fdf43d79b5f7 (patch) | |
tree | 6a468982becf62cfbe41ed2d3cc1fcc3fba604de | |
parent | Merge branch 'jc/test-cvs-no-init-in-existing-dir' (diff) | |
parent | xmkstemp(): avoid showing truncated template more carefully (diff) | |
download | tgif-9316f910f7f2435e617968ec6999fdf43d79b5f7.tar.xz |
Merge branch 'jc/mkstemp-more-careful-error-reporting'
After failing to create a temporary file using mkstemp(), failing
pathname was not reported correctly on some platforms.
* jc/mkstemp-more-careful-error-reporting:
xmkstemp(): avoid showing truncated template more carefully
-rw-r--r-- | wrapper.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -229,7 +229,7 @@ int xmkstemp(char *template) int saved_errno = errno; const char *nonrelative_template; - if (!template[0]) + if (strlen(template) != strlen(origtemplate)) template = origtemplate; nonrelative_template = absolute_path(template); |