mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-12 04:14:05 +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
@ -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…
x
Reference in New Issue
Block a user