From 47bd170d7eab68fea72b219e00b5636492f940d6 Mon Sep 17 00:00:00 2001 From: scrawl Date: Mon, 16 Jun 2014 04:13:36 +0200 Subject: [PATCH] Crashcatcher: create temp file in /tmp, not working directory (which may not have write access) --- apps/openmw/crashcatcher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/crashcatcher.cpp b/apps/openmw/crashcatcher.cpp index 65a0369193..7f805f2332 100644 --- a/apps/openmw/crashcatcher.cpp +++ b/apps/openmw/crashcatcher.cpp @@ -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"