mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-26 19:23:26 -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
|
#ifndef WIN32
|
||||||
|
|
||||||
#ifdef ENABLE_WALLET
|
#ifdef ENABLE_WALLET
|
||||||
if (!GetBoolArg("-sysperms", false) || !GetBoolArg("-disablewallet", false))
|
if (!GetBoolArg("-sysperms", false) || !GetBoolArg("-disablewallet", false)) {
|
||||||
umask(077);
|
umask(077);
|
||||||
|
if (GetBoolArg("-sysperms", false))
|
||||||
|
return InitError("Error: -sysperms is not allowed in combination with enabled wallet functionality");
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
if (!GetBoolArg("-sysperms", false))
|
if (!GetBoolArg("-sysperms", false))
|
||||||
umask(077);
|
umask(077);
|
||||||
|
|
Loading…
Add table
Reference in a new issue