mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 18:53:23 -03:00
Make -sysperms without -disabledwallet a fatal error wallet-enabled builds
This commit is contained in:
parent
4e1a196e91
commit
bd4307b84b
1 changed files with 4 additions and 1 deletions
|
@ -427,8 +427,11 @@ bool AppInit2(boost::thread_group& threadGroup)
|
|||
#ifndef WIN32
|
||||
|
||||
#ifdef ENABLE_WALLET
|
||||
if (!GetBoolArg("-sysperms", false) || !GetBoolArg("-disablewallet", false))
|
||||
if (!GetBoolArg("-sysperms", false) || !GetBoolArg("-disablewallet", false)) {
|
||||
umask(077);
|
||||
if (GetBoolArg("-sysperms", false))
|
||||
return InitError("Error: -sysperms is not allowed in combination with enabled wallet functionality");
|
||||
}
|
||||
#else
|
||||
if (!GetBoolArg("-sysperms", false))
|
||||
umask(077);
|
||||
|
|
Loading…
Add table
Reference in a new issue