Folders: Do not escape the variable cpath_real to prevent certain OpenCL runtimes from running into an error which do not support escape characters

This commit is contained in:
Jens Steube
2021-06-24 09:24:02 +02:00
parent 9ecff406de
commit 28c08de9ef
3 changed files with 22 additions and 15 deletions
+3 -7
View File
@@ -507,17 +507,13 @@ int folder_config_init (hashcat_ctx_t *hashcat_ctx, MAYBE_UNUSED const char *ins
}
*/
// not escaping here, using quotes later
// naive_escape (cpath_real, PATH_MAX, ' ', '\\');
#if defined (_WIN)
naive_replace (cpath_real, '\\', '/');
// not escaping here, windows using quotes later
// naive_escape (cpath_real, PATH_MAX, ' ', '\\');
#else
naive_escape (cpath_real, PATH_MAX, ' ', '\\');
#endif
/**