void
CrashReportWriter::WriteStackFrame(const StackFrame& frame)
-{
+{
OpenObject();
WriteValueBool("is_managed", frame.IsManaged());
WriteValue64("module_address", frame.ModuleAddress());
bool
CrashReportWriter::OpenWriter(const char* fileName)
{
- m_fd = open(fileName, O_WRONLY|O_CREAT|O_TRUNC, 0664);
+ m_fd = open(fileName, O_WRONLY|O_CREAT|O_TRUNC, S_IWUSR | S_IRUSR);
if (m_fd == -1)
{
fprintf(stderr, "Could not create json file %s: %d %s\n", fileName, errno, strerror(errno));
bool
DumpWriter::OpenDump(const char* dumpFileName)
{
- m_fd = open(dumpFileName, O_WRONLY|O_CREAT|O_TRUNC, 0664);
+ m_fd = open(dumpFileName, O_WRONLY|O_CREAT|O_TRUNC, S_IWUSR | S_IRUSR);
if (m_fd == -1)
{
fprintf(stderr, "Could not open output %s: %d %s\n", dumpFileName, errno, strerror(errno));