From c0ab2063d07746d62c3f61966484c63e8a1a9887 Mon Sep 17 00:00:00 2001 From: myT Date: Tue, 16 Jan 2018 04:03:15 +0100 Subject: [PATCH] passing the 3rd argument to open to please GCC --- code/linux/linux_signals.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/linux/linux_signals.cpp b/code/linux/linux_signals.cpp index a921d68..9ff8c3b 100644 --- a/code/linux/linux_signals.cpp +++ b/code/linux/linux_signals.cpp @@ -298,7 +298,7 @@ static void Sig_HandleCrash(int sig) Sig_Unwind_GetContext(); - const int fd = open(Sig_BackTraceFilePath(), O_CREAT | O_TRUNC | O_WRONLY); + const int fd = open(Sig_BackTraceFilePath(), O_CREAT | O_TRUNC | O_WRONLY, 0644); if (fd != -1) { Sig_PrintAttempt("write safe libunwind stack trace");