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

Commit

Permalink
Merged PR 15716: [release/3.1] Use user read+write access for coredum…
Browse files Browse the repository at this point in the history
…p file descriptor open
  • Loading branch information
hoyosjs authored and wtgodbe committed Jul 8, 2021
1 parent e4805e0 commit 1ef5fea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/debug/createdump/dumpwriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ DumpWriter::Release()
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: %s\n", dumpFileName, strerror(errno));
Expand Down

0 comments on commit 1ef5fea

Please sign in to comment.