mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 18:53:23 -03:00
Simplify code, as per laanwj's suggestion
This commit is contained in:
parent
bd4307b84b
commit
d53a33b828
1 changed files with 5 additions and 7 deletions
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;
|
||||
|
|
Loading…
Add table
Reference in a new issue