diff options
author | luigi1111 <luigi1111w@gmail.com> | 2021-11-01 12:31:32 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2021-11-01 12:31:32 -0500 |
commit | d573b3d76cb12008c44f2c49c06b72ae1cacbf03 (patch) | |
tree | a5a865615fce6fab1478416cacc3bbd045e4b0d2 /src/wallet | |
parent | Merge pull request #8017 (diff) | |
parent | wallet_api: enable set_strict_default_file_permissions (diff) | |
download | monero-d573b3d76cb12008c44f2c49c06b72ae1cacbf03.tar.xz |
Merge pull request #8020
47e7a43 wallet_api: enable set_strict_default_file_permissions (tobtoht)
Diffstat (limited to 'src/wallet')
-rw-r--r-- | src/wallet/api/wallet_manager.cpp | 5 | ||||
-rw-r--r-- | src/wallet/api/wallet_manager.h | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/wallet/api/wallet_manager.cpp b/src/wallet/api/wallet_manager.cpp index 417a27db5..f5d5e2168 100644 --- a/src/wallet/api/wallet_manager.cpp +++ b/src/wallet/api/wallet_manager.cpp @@ -49,6 +49,11 @@ namespace epee { namespace Monero { +WalletManagerImpl::WalletManagerImpl() +{ + tools::set_strict_default_file_permissions(true); +} + Wallet *WalletManagerImpl::createWallet(const std::string &path, const std::string &password, const std::string &language, NetworkType nettype, uint64_t kdf_rounds) { diff --git a/src/wallet/api/wallet_manager.h b/src/wallet/api/wallet_manager.h index cf3056a17..1e8cff877 100644 --- a/src/wallet/api/wallet_manager.h +++ b/src/wallet/api/wallet_manager.h @@ -95,7 +95,7 @@ public: bool setProxy(const std::string &address) override; private: - WalletManagerImpl() {} + WalletManagerImpl(); friend struct WalletManagerFactory; net::http::client m_http_client; std::string m_errorString; |