fixes #1314: do not use the defines INSTALL_FOLDER/SHARED_FOLDER in read_restore (), but the corresponding values from the folder config

pull/1315/head
philsmd 7 years ago
parent ae5a97a95b
commit 16df4564ce
No known key found for this signature in database
GPG Key ID: 4F25D016D9D6A8AF

@ -158,21 +158,18 @@ static int read_restore (hashcat_ctx_t *hashcat_ctx)
* updated folders
*/
const char *install_folder = NULL;
const char *shared_folder = NULL;
// copy the paths of INSTALL_FOLDER and SHARED_FOLDER from the folder config:
#if defined (INSTALL_FOLDER)
install_folder = INSTALL_FOLDER;
#endif
#if defined (SHARED_FOLDER)
shared_folder = SHARED_FOLDER;
#endif
char *install_folder = hcstrdup (folder_config->install_dir);
char *shared_folder = hcstrdup (folder_config->shared_dir);
folder_config_destroy (hashcat_ctx);
const int rc_folder_config_init = folder_config_init (hashcat_ctx, install_folder, shared_folder);
hcfree (install_folder);
hcfree (shared_folder);
if (rc_folder_config_init == -1) return -1;
/**

Loading…
Cancel
Save