1. Stefan Saasen
  2. git

Commits

Junio C Hamano  committed f474c52 Merge

Merge branch 'jc/maint-1.6.0-pack-directory'

* jc/maint-1.6.0-pack-directory:
Fix odb_mkstemp() on AIX

  • Participants
  • Parent commits 12ef3d8, 2c626e5
  • Branches master

Comments (0)

Files changed (1)

File wrapper.c

View file
 		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);
 }