Skip to content

Commit

Permalink
set the default open() O_CREAT file permissions to 666 (#736)
Browse files Browse the repository at this point in the history
  • Loading branch information
reneme authored and BillyONeal committed Aug 3, 2018
1 parent bcafee3 commit 77e184a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Release/src/streams/fileio_posix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ bool _open_fsb_str(_filestream_callback *callback, const char *filename, std::io
cmode |= O_CREAT;
}

int f = open(name.c_str(), cmode, 0600);
int f = open(name.c_str(), cmode, 0666);

_finish_create(f, callback, mode, prot);
});
Expand Down

0 comments on commit 77e184a

Please sign in to comment.