Skip to content
Snippets Groups Projects
Commit a0ec4fc8 authored by Julien Boeuf's avatar Julien Boeuf
Browse files

Adding /tmp to prefix when creating posix temporary files.

- Addresses #416.
parent 3d6fa14f
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