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:
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…
Reference in New Issue
Block a user