Remove -sysperms option

This change effectively reverts commits from
https://github.com/bitcoin/bitcoin/pull/4286.

Users, who rely on non-default access permissions, should use `chmod`
command.
This commit is contained in:
Hennadii Stepanov
2023-02-05 08:09:16 +00:00
parent d71b0e78eb
commit 8a6219e543
5 changed files with 4 additions and 14 deletions

View File

@@ -336,7 +336,7 @@ void Session::GenerateAndSavePrivateKey(const Sock& sock)
{
DestGenerate(sock);
// umask is set to 077 in init.cpp, which is ok (unless -sysperms is given)
// umask is set to 077 in init.cpp, which is ok.
if (!WriteBinaryFile(m_private_key_file,
std::string(m_private_key.begin(), m_private_key.end()))) {
throw std::runtime_error(