1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-14 11:48:57 +00:00

Merge branch 'hashcat:master' into master

This commit is contained in:
therealartifex 2021-08-06 09:01:34 -04:00 committed by GitHub
commit 045f6d034e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -313,6 +313,8 @@ bool hc_path_is_file (const char *path)
{
struct stat s;
memset (&s, 0, sizeof (s));
if (stat (path, &s) == -1) return false;
if (S_ISREG (s.st_mode)) return true;
@ -324,6 +326,8 @@ bool hc_path_is_directory (const char *path)
{
struct stat s;
memset (&s, 0, sizeof (s));
if (stat (path, &s) == -1) return false;
if (S_ISDIR (s.st_mode)) return true;
@ -335,6 +339,8 @@ bool hc_path_is_empty (const char *path)
{
struct stat s;
memset (&s, 0, sizeof (s));
if (stat (path, &s) == -1) return false;
if (s.st_size == 0) return true;
@ -678,6 +684,9 @@ bool hc_same_files (char *file1, char *file2)
struct stat tmpstat_file1;
struct stat tmpstat_file2;
memset (&tmpstat_file1, 0, sizeof (tmpstat_file1));
memset (&tmpstat_file2, 0, sizeof (tmpstat_file2));
int do_check = 0;
HCFILE fp;