Fix crash reports having execute permission

This commit is contained in:
Red 2024-08-22 11:36:12 +00:00 committed by Mihai Fufezan
parent bdb296a83c
commit f634b9e61a

View file

@ -86,7 +86,7 @@ void CrashReporter::createAndSaveCrash(int sig) {
stderr.flush();
}
reportFd = open(reportPath.get_str(), O_WRONLY | O_CREAT, S_IRWXU);
reportFd = open(reportPath.get_str(), O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR);
if (reportFd < 0) {
exit_with_error("Failed to open crash report path for writing");
}