diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-03-01 01:31:02 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-03-01 01:31:02 +0100 |
commit | f474c526618d5d1111b585a6344e012fb731d3fe (patch) | |
tree | 6d73ae897c7d9eee9603ee1dfb88cc30e7444142 /wrapper.c | |
parent | Merge branch 'maint' (diff) | |
parent | Fix odb_mkstemp() on AIX (diff) | |
download | git-f474c526618d5d1111b585a6344e012fb731d3fe.tar.xz git-f474c526618d5d1111b585a6344e012fb731d3fe.zip |
Merge branch 'jc/maint-1.6.0-pack-directory'
* jc/maint-1.6.0-pack-directory:
Fix odb_mkstemp() on AIX
Diffstat (limited to 'wrapper.c')
-rw-r--r-- | wrapper.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -268,9 +268,10 @@ int odb_mkstemp(char *template, size_t limit, const char *pattern) return fd; /* slow path */ - safe_create_leading_directories(template); + /* some mkstemp implementations erase template on failure */ snprintf(template, limit, "%s/%s", get_object_directory(), pattern); + safe_create_leading_directories(template); return xmkstemp(template); } |