Merge pull request #7003 from gvbr/runahead

Runahead: ensure prefixed second-instance temp directory on linux
This commit is contained in:
Twinaphex 2018-07-24 15:57:47 +02:00 committed by GitHub
commit 8535fe11da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,7 +80,11 @@ char* get_temp_directory_alloc(void)
return path;
#endif
#else
char *path = strcpy_alloc_force(getenv("TMPDIR"));
char *path = "/tmp";
if (getenv("TMPDIR"))
path = getenv("TMPDIR");
path = strcpy_alloc_force(path);
return path;
#endif
}