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