mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-30 02:31:05 +02:00
Simplify code, as per laanwj's suggestion
This commit is contained in:
12
src/init.cpp
12
src/init.cpp
@ -426,16 +426,14 @@ bool AppInit2(boost::thread_group& threadGroup)
|
||||
#endif
|
||||
#ifndef WIN32
|
||||
|
||||
if (GetBoolArg("-sysperms", false)) {
|
||||
#ifdef ENABLE_WALLET
|
||||
if (!GetBoolArg("-sysperms", false) || !GetBoolArg("-disablewallet", false)) {
|
||||
umask(077);
|
||||
if (GetBoolArg("-sysperms", false))
|
||||
if (!GetBoolArg("-disablewallet", false))
|
||||
return InitError("Error: -sysperms is not allowed in combination with enabled wallet functionality");
|
||||
}
|
||||
#else
|
||||
if (!GetBoolArg("-sysperms", false))
|
||||
umask(077);
|
||||
#endif
|
||||
} else {
|
||||
umask(077);
|
||||
}
|
||||
|
||||
// Clean shutdown on SIGTERM
|
||||
struct sigaction sa;
|
||||
|
Reference in New Issue
Block a user