Fixed IPFS_PATH environment var.

This commit is contained in:
Jose Marcial Vieira Bisneto 2017-06-06 21:42:38 -03:00
parent a2e31f1edd
commit a88636ae7e

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;