Skip to content
Snippets Groups Projects
Commit fd7e8509 authored by darkmac's avatar darkmac
Browse files

te4_log.txt on OSX is now always in /tmp

parent d1460bbb
No related branches found
No related tags found
No related merge requests found
......@@ -1390,11 +1390,7 @@ int main(int argc, char *argv[])
}
#ifdef SELFEXE_MACOSX
if (!is_zygote) {
const char *self = get_self_executable(g_argc, g_argv);
const char *name = "../../../te4_log.txt";
char *logname = malloc(strlen(self) + strlen(name) + 1);
strcpy(logname, self);
strcpy(logname + strlen(self), name);
const char *logname = "/tmp/te4_log.txt";
logfile = freopen(logname, "w", stdout);
if (os_autoflush) setlinebuf(logfile);
}
......
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