Merge branch 'maint' of git://linux-nfs.org/~bfields/git into maint
[gitweb.git] / index-pack.c
index 8403c36b63c041fe0c81276391a0bbea906e833d..db58e050410197f6eda4b91705e20a8bfc87b088 100644 (file)
@@ -114,7 +114,7 @@ static const char *open_pack_file(const char *pack_name)
                        static char tmpfile[PATH_MAX];
                        snprintf(tmpfile, sizeof(tmpfile),
                                 "%s/tmp_pack_XXXXXX", get_object_directory());
-                       output_fd = mkstemp(tmpfile);
+                       output_fd = xmkstemp(tmpfile);
                        pack_name = xstrdup(tmpfile);
                } else
                        output_fd = open(pack_name, O_CREAT|O_EXCL|O_RDWR, 0600);