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

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Is my home $HOME or is it getpwent()->pw_dir ?
Дата
Msg-id 1fb92e0d-a40e-cd8c-4989-85ac08025dc5@enterprisedb.com
обсуждение исходный текст
Ответ на Is my home $HOME or is it getpwent()->pw_dir ?  (Chapman Flack <chap@anastigmatix.net>)
Список 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 по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Getting rid of regression test input/ and output/ files
Следующее
От: John Naylor
Дата:
Сообщение: Re: speed up verifying UTF-8