2
0
Fork 0

[core] Specify file permissions when creating profiler output file

personal/stbuehler/wip
Thomas Porzelt 2010-05-16 13:41:21 +02:00
parent d8c187453a
commit 5646b353ea
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@ void li_profiler_enable(gchar *output_path) {
} else if (g_str_equal(output_path, "stderr")) {
profiler_output_fd = STDERR_FILENO;
} else {
profiler_output_fd = open(output_path, O_WRONLY | O_CREAT | O_TRUNC);
profiler_output_fd = open(output_path, O_WRONLY | O_CREAT | O_TRUNC, 0600);
if (-1 == profiler_output_fd) {
fputs("error opening profiler output file\n", stderr);
fflush(stderr);