Fix for #2387, but need some testing first

This commit is contained in:
Jens Steube
2020-06-03 11:10:31 +02:00
parent 891b59fb2f
commit dc9f4e993a
3 changed files with 17 additions and 2 deletions

View File

@@ -258,6 +258,7 @@ int folder_config_init (hashcat_ctx_t *hashcat_ctx, MAYBE_UNUSED const char *ins
* A workaround is to chdir() to the OpenCL folder,
* then compile the kernels,
* then chdir() back to where we came from so we need to save it first
* - temporary disabled due to https://github.com/hashcat/hashcat/issues/2379
*/
char *cwd = (char *) hcmalloc (HCBUFSIZ_TINY);
@@ -450,6 +451,7 @@ int folder_config_init (hashcat_ctx_t *hashcat_ctx, MAYBE_UNUSED const char *ins
hcfree (cpath);
//if (getenv ("TMP") == NULL)
/* temporary disabled due to https://github.com/hashcat/hashcat/issues/2379
if (true)
{
char *tmp;
@@ -458,6 +460,7 @@ int folder_config_init (hashcat_ctx_t *hashcat_ctx, MAYBE_UNUSED const char *ins
putenv (tmp);
}
*/
#if defined (_WIN)