mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-02 03:31:35 +02:00
Make -sysperms without -disabledwallet a fatal error wallet-enabled builds
This commit is contained in:
@ -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);
|
||||||
|
Reference in New Issue
Block a user