Skip to content

Commit

Permalink
Merge pull request #130 from Chia-Network/file-permissions
Browse files Browse the repository at this point in the history
Set unix file permissions to 0666 by default. See #44
  • Loading branch information
haorldbchi authored Oct 21, 2021
2 parents 9abf442 + e4ae189 commit 2e58620
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 2e58620

Please sign in to comment.