Merge pull request #419 from jboeuf/slash_tmp

Adding /tmp to prefix when creating posix temporary files.
changes/75/217575/1
Nicolas Noble 10 years ago
commit 318eec1e7d
  1. 2
      src/core/support/file_posix.c

@ -67,7 +67,7 @@ FILE *gpr_tmpfile(const char *prefix, char **tmp_filename) {
if (tmp_filename != NULL) *tmp_filename = NULL;
gpr_asprintf(&template, "%s_XXXXXX", prefix);
gpr_asprintf(&template, "/tmp/%s_XXXXXX", prefix);
GPR_ASSERT(template != NULL);
fd = mkstemp(template);

Loading…
Cancel
Save