Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 23 Nov 2015 03:58:15 +0300
From: Solar Designer <solar@...nwall.com>
To: john-users@...ts.openwall.com
Subject: Re: [bug] JOHN_PRIVATE_HOME ignores $HOME

On Sun, Nov 22, 2015 at 04:47:47PM -0800, Alex Dunn wrote:
> Originally posted to
> https://github.com/magnumripper/JohnTheRipper/issues/1901
> 
> In `params.h`, `JOHN_PRIVATE_HOME` is set to `~/.john`.  The way `~`
> is evaluated ignores the `HOME` environment variable, so it always
> tries to write logs and recovery files to the user's actual home
> directory.  (This is causing problems in Homebrew, where we run tests
> in a sandbox and set `HOME` to a temporary directory.)
> 
> Is a way to fix this in configuration post-compile, or is it a bug in
> path_expand?

Neither.  It's just the way tilde expansion is implemented now.  Given
your use case, we might add parsing of the HOME environment variable.

Please feel free to introduce and use a custom patch for the time being.

Alexander

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.