1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-23 23:19:09 +00:00

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

This commit is contained in:
jsteube 2016-11-16 13:50:42 +01:00
parent 24d535d197
commit af633cdf77

View File

@ -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;