Skip to content

Commit

Permalink
Set file permissions to 0666 by default. See #44
Browse files Browse the repository at this point in the history
  • Loading branch information
haorldbchi committed Oct 21, 2021
1 parent 9abf442 commit e4ae189
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/unix/FileStream_Unix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ bool FileStream::Open( const char* path, FileStream& file, FileMode mode, FileAc
#endif

if( mode == FileMode::Create )
fmode = S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH;
fmode = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH;

int fd = open( path, fdFlags, fmode );
if( fd < 0 )
Expand Down

0 comments on commit e4ae189

Please sign in to comment.