Fixed IPFS_PATH environment var.
This commit is contained in:
parent
a2e31f1edd
commit
a88636ae7e
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ int ipfs_repo_fsrepo_new(const char* repo_path, struct RepoConfig* config, struc
|
||||||
if (strstr(ipfs_path, default_subdir) != NULL) {
|
if (strstr(ipfs_path, default_subdir) != NULL) {
|
||||||
strcpy((*repo)->path, ipfs_path);
|
strcpy((*repo)->path, ipfs_path);
|
||||||
} else {
|
} 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 {
|
} else {
|
||||||
int len = strlen(repo_path) + 1;
|
int len = strlen(repo_path) + 1;
|
||||||
|
|
Loading…
Reference in a new issue