Skip to content
Snippets Groups Projects
Commit 318eec1e authored by Nicolas Noble's avatar Nicolas Noble
Browse files

Merge pull request #419 from jboeuf/slash_tmp

Adding /tmp to prefix when creating posix temporary files.
parents 3d6fa14f a0ec4fc8
No related branches found
No related tags found
No related merge requests found
...@@ -67,7 +67,7 @@ FILE *gpr_tmpfile(const char *prefix, char **tmp_filename) { ...@@ -67,7 +67,7 @@ FILE *gpr_tmpfile(const char *prefix, char **tmp_filename) {
if (tmp_filename != NULL) *tmp_filename = NULL; if (tmp_filename != NULL) *tmp_filename = NULL;
gpr_asprintf(&template, "%s_XXXXXX", prefix); gpr_asprintf(&template, "/tmp/%s_XXXXXX", prefix);
GPR_ASSERT(template != NULL); GPR_ASSERT(template != NULL);
fd = mkstemp(template); fd = mkstemp(template);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment