Skip to content

Commit

Permalink
Change default open mode to -rw-r--r-- (#2530)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Oct 3, 2021
1 parent 012cc70 commit cc67ea3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/os.cc
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ int buffered_file::fileno() const {

#if FMT_USE_FCNTL
file::file(cstring_view path, int oflag) {
int mode = S_IRUSR | S_IWUSR;
int mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH;
# if defined(_WIN32) && !defined(__MINGW32__)
fd_ = -1;
FMT_POSIX_CALL(sopen_s(&fd_, path.c_str(), oflag, _SH_DENYNO, mode));
Expand Down

0 comments on commit cc67ea3

Please sign in to comment.