Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Mon, 4 Jan 2016 14:01:13 +0100
From: magnum <john.magnum@...hmail.com>
To: john-users@...ts.openwall.com
Subject: Re: [bug] JOHN_PRIVATE_HOME ignores $HOME

On 2015-11-23 01:58, Solar Designer wrote:
> 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.

This is now fixed in Jumbo. Here's the same patch against john proper if 
you like.

magnum

View attachment "john-1.8.0-HOME.diff" of type "text/plain" (1546 bytes)

Powered by blists - more mailing lists

Your e-mail address:

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