Fixed IPFS_PATH environment var.

yamux
Jose Marcial Vieira Bisneto 2017-06-06 21:42:38 -03:00
parent a2e31f1edd
commit a88636ae7e
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ int ipfs_repo_fsrepo_new(const char* repo_path, struct RepoConfig* config, struc
if (strstr(ipfs_path, default_subdir) != NULL) {
strcpy((*repo)->path, ipfs_path);
} else {
os_utils_filepath_join(os_utils_get_homedir(), default_subdir, (*repo)->path, newPathLen);
os_utils_filepath_join(ipfs_path, default_subdir, (*repo)->path, newPathLen);
}
} else {
int len = strlen(repo_path) + 1;