Re: Is my home $HOME or is it getpwent()->pw_dir ? - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Is my home $HOME or is it getpwent()->pw_dir ?
Date
Msg-id 1fb92e0d-a40e-cd8c-4989-85ac08025dc5@enterprisedb.com
Whole thread Raw
In response to Is my home $HOME or is it getpwent()->pw_dir ?  (Chapman Flack <chap@anastigmatix.net>)
List pgsql-hackers
On 18.12.21 21:57, Chapman Flack wrote:
> I sometimes do some testing as nobody, on a distro where
> getpwent(nobody)->pw_dir is a directory that nobody can't write.
> So I end up setting $HOME to a directory that, um, is writable.
> 
> When I start psql, strace shows $HOME being honored when looking
> for .terminfo and .inputrc, and getpwent()->pw_dir being used
> to look for .pgpass, .psqlrc, and .psql_history, which of course
> aren't there.
> 
> I'm sure the .terminfo and .inputrc lookups are being done by library code.
> In my experience, it seems traditionally unixy to let $HOME take precedence.

See this patch: https://commitfest.postgresql.org/36/3362/



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Getting rid of regression test input/ and output/ files
Next
From: John Naylor
Date:
Subject: Re: speed up verifying UTF-8