mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 20:53:50 +00:00
Crashcatcher: create temp file in /tmp, not working directory (which may not have write access)
This commit is contained in:
parent
f935cfc6c9
commit
47bd170d7e
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ static void gdb_info(pid_t pid)
|
|||
int fd;
|
||||
|
||||
/* Create a temp file to put gdb commands into */
|
||||
strcpy(respfile, "gdb-respfile-XXXXXX");
|
||||
strcpy(respfile, "/tmp/gdb-respfile-XXXXXX");
|
||||
if((fd=mkstemp(respfile)) >= 0 && (f=fdopen(fd, "w")) != NULL)
|
||||
{
|
||||
fprintf(f, "attach %d\n"
|
||||
|
|
Loading…
Reference in a new issue