mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-23 05:09:26 +02:00
Apply default umask in SetupEnvironment()
This change makes all filesystem artifacts--files and directories--being created with the default umask.
This commit is contained in:
@@ -1360,6 +1360,11 @@ void SetupEnvironment()
|
||||
SetConsoleCP(CP_UTF8);
|
||||
SetConsoleOutputCP(CP_UTF8);
|
||||
#endif
|
||||
|
||||
#ifndef WIN32
|
||||
constexpr mode_t private_umask = 0077;
|
||||
umask(private_umask);
|
||||
#endif
|
||||
}
|
||||
|
||||
bool SetupNetworking()
|
||||
|
||||
Reference in New Issue
Block a user