Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 1ef5fea

Browse files
hoyosjswtgodbe
authored andcommitted
Merged PR 15716: [release/3.1] Use user read+write access for coredump file descriptor open
1 parent e4805e0 commit 1ef5fea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/debug/createdump/dumpwriter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ DumpWriter::Release()
6161
bool
6262
DumpWriter::OpenDump(const char* dumpFileName)
6363
{
64-
m_fd = open(dumpFileName, O_WRONLY|O_CREAT|O_TRUNC, 0664);
64+
m_fd = open(dumpFileName, O_WRONLY|O_CREAT|O_TRUNC, S_IWUSR | S_IRUSR);
6565
if (m_fd == -1)
6666
{
6767
fprintf(stderr, "Could not open output %s: %s\n", dumpFileName, strerror(errno));

0 commit comments

Comments
 (0)