From 06bccdc713bca16a548d6b4793503abe0819ec8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Meusel?= Date: Thu, 19 Apr 2018 07:45:05 +0200 Subject: [PATCH] set the default open() O_CREAT file permissions to 666 --- Release/src/streams/fileio_posix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Release/src/streams/fileio_posix.cpp b/Release/src/streams/fileio_posix.cpp index 88056e8c38..ce166957ce 100644 --- a/Release/src/streams/fileio_posix.cpp +++ b/Release/src/streams/fileio_posix.cpp @@ -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); });