mirror of
https://github.com/hashcat/hashcat.git
synced 2025-05-25 10:18:47 +00:00
conform to hashcat style conventions
This commit is contained in:
parent
8d78815767
commit
d018469aef
@ -97,9 +97,12 @@ static void get_profile_dir (char *profile_dir, const char *home_dir)
|
||||
if (stat (profile_dir, &st) == 0 && S_ISDIR (st.st_mode))
|
||||
return;
|
||||
|
||||
if (getenv("XDG_DATA_HOME")) {
|
||||
if (getenv("XDG_DATA_HOME"))
|
||||
{
|
||||
snprintf (profile_dir, HCBUFSIZ_TINY, "%s/hashcat", getenv("XDG_DATA_HOME"));
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
snprintf (profile_dir, HCBUFSIZ_TINY, "%s/.local/share/hashcat", home_dir);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user