X-Git-Url: https://www.flypig.org.uk/git/?a=blobdiff_plain;f=src%2Fhashcat.c;h=ca691a9793b58ad9dbf3a373f1b9d6cf2d2e8d79;hb=d77c63a12c08cc587e420b2196bdb32bfee1ad5a;hp=67714d15d6c5a9185f8b7da6926a49492d7c1c44;hpb=5909bbb7b7547873ef7b874530bbe8a5688a3ce3;p=hashcat.git diff --git a/src/hashcat.c b/src/hashcat.c index 67714d1..ca691a9 100644 --- a/src/hashcat.c +++ b/src/hashcat.c @@ -6,7 +6,7 @@ * License.....: MIT */ -#ifdef DARWIN +#if defined(DARWIN) || defined(__FreeBSD__) #include #endif @@ -6171,7 +6171,8 @@ int main (int argc, char **argv) char *exec_path = get_exec_path (); - #if defined(LINUX) || defined(__APPLE__) + + #if defined(LINUX) || defined(__APPLE__) || defined(__FreeBSD__) char *resolved_install_folder = realpath (INSTALL_FOLDER, NULL); char *resolved_exec_path = realpath (exec_path, NULL); @@ -13017,6 +13018,7 @@ int main (int argc, char **argv) // here we have in line_buf: ESSID:MAC1:MAC2 (without the plain) // manipulate salt_buf + memset (line_buf_cpy, 0, HCBUFSIZ); memcpy (line_buf_cpy, line_buf, i); char *mac2_pos = strrchr (line_buf_cpy, ':');