Skip to content
Snippets Groups Projects
Commit 5998395a authored by pavel.uhanov's avatar pavel.uhanov Committed by Constantin P.
Browse files

hotfix-9311

parent 858ddb6f
No related branches found
No related tags found
2 merge requests!1957Develop port 02 12,!1893hotfix-9311
......@@ -312,10 +312,14 @@ int dap_chain_wallet_init()
if ( !(l_dir = opendir(c_wallets_path)) ) { /* Path is not exist ? Create the dir and exit */
#ifdef _WIN32
mkdir(c_wallets_path);
int l_res = mkdir(c_wallets_path);
#else
mkdir(c_wallets_path, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
int l_res = mkdir(c_wallets_path, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
#endif
if (l_res) {
log_it(L_ERROR, "Can't create wallet dir %s", c_wallets_path);
return l_res;
}
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment