Replaced all calls to readdir() with readdir_r() to ensure thread safety with exception to windows, because there's no readdir_r() for windows. We should replace this with FindFirstFile() and FindNextFile() in a later version

pull/599/head
jsteube 8 years ago
parent 24d535d197
commit af633cdf77

@ -125,7 +125,7 @@ char *first_file_in_directory (const char *path)
{
char *first_file = NULL;
#if defined (__APPLE__)
#if defined (_POSIX)
struct dirent e;
@ -188,7 +188,7 @@ char **scan_directory (hashcat_ctx_t *hashcat_ctx, const char *path)
if ((d = opendir (tmp_path)) != NULL)
{
#if defined (__APPLE__)
#if defined (_POSIX)
struct dirent e;

Loading…
Cancel
Save