Make -sysperms without -disabledwallet a fatal error wallet-enabled builds

This commit is contained in:
Rune K. Svendsen 2014-06-08 15:44:56 +02:00
parent 4e1a196e91
commit bd4307b84b

View file

@ -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);