Skip to content

Commit

Permalink
Merge branch 'jc/maint-1.6.0-pack-directory'
Browse files Browse the repository at this point in the history
* jc/maint-1.6.0-pack-directory:
  Fix odb_mkstemp() on AIX
  • Loading branch information
gitster committed Mar 1, 2009
2 parents 12ef3d8 + 2c626e5 commit f474c52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit f474c52

Please sign in to comment.