Skip to content

Commit f474c52

Browse files
committed
Merge branch 'jc/maint-1.6.0-pack-directory'
* jc/maint-1.6.0-pack-directory: Fix odb_mkstemp() on AIX
2 parents 12ef3d8 + 2c626e5 commit f474c52

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

wrapper.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,10 @@ int odb_mkstemp(char *template, size_t limit, const char *pattern)
268268
return fd;
269269

270270
/* slow path */
271-
safe_create_leading_directories(template);
271+
/* some mkstemp implementations erase template on failure */
272272
snprintf(template, limit, "%s/%s",
273273
get_object_directory(), pattern);
274+
safe_create_leading_directories(template);
274275
return xmkstemp(template);
275276
}
276277

0 commit comments

Comments
 (0)