From e4ae18960d7a05a3663376eac3f539c8f63b3f54 Mon Sep 17 00:00:00 2001 From: Harold Brenes Date: Thu, 21 Oct 2021 14:27:44 -0500 Subject: [PATCH] Set file permissions to 0666 by default. See #44 --- src/platform/unix/FileStream_Unix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/unix/FileStream_Unix.cpp b/src/platform/unix/FileStream_Unix.cpp index 52595818..8a24c407 100644 --- a/src/platform/unix/FileStream_Unix.cpp +++ b/src/platform/unix/FileStream_Unix.cpp @@ -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 )