Merge pull request #1383 from philsmd/master
fixed the nanosecond access time problem, also working on macos now
This commit is contained in:
+2
-2
@@ -19,8 +19,8 @@ int sort_by_dictstat (const void *s1, const void *s2)
|
||||
|
||||
d2->stat.st_atime = d1->stat.st_atime;
|
||||
|
||||
#if defined (WITH_NANOSECONDS_IN_STAT)
|
||||
d2->stat.st_atim.tv_nsec = d1->stat.st_atim.tv_nsec;
|
||||
#if defined (STAT_NANOSECONDS_ACCESS_TIME)
|
||||
d2->stat.STAT_NANOSECONDS_ACCESS_TIME = d1->stat.STAT_NANOSECONDS_ACCESS_TIME;
|
||||
#endif
|
||||
|
||||
const int rc_from = strcmp (d1->encoding_from, d2->encoding_from);
|
||||
|
||||
+2
-2
@@ -293,8 +293,8 @@ int count_words (hashcat_ctx_t *hashcat_ctx, FILE *fd, const char *dictfile, u64
|
||||
d.stat.st_rdev = 0;
|
||||
d.stat.st_atime = 0;
|
||||
|
||||
#if defined (WITH_NANOSECONDS_IN_STAT)
|
||||
d.stat.st_atim.tv_nsec = 0;
|
||||
#if defined (STAT_NANOSECONDS_ACCESS_TIME)
|
||||
d.stat.STAT_NANOSECONDS_ACCESS_TIME = 0;
|
||||
#endif
|
||||
|
||||
#if defined (_POSIX)
|
||||
|
||||
Reference in New Issue
Block a user