[PATCH] get_home_path: use HOME

Поиск
Список
Период
Сортировка
От Rudolf Gavlas
Тема [PATCH] get_home_path: use HOME
Дата
Msg-id CAEH6cQqbdbXoUHJBbX9ixwfjFFsUC-a8hFntKcci=diWgBb3fQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: [PATCH] get_home_path: use HOME  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: [PATCH] get_home_path: use HOME  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Re: [PATCH] get_home_path: use HOME  (Aleksander Alekseev <a.alekseev@postgrespro.ru>)
Список pgsql-hackers
Hi,

I work in an environment, where servers are administered by people
with different user names and identical uid (0). The attached patch
fixes a bug exposed in such environments: where the logic of
retrieving a personal configuration file relies solely on
get_home_path(), the different users are forced to share the file of
the first user with given uid.

The usage of HOME environment variable (if set) is IMO the right,
standard and faster way to get_home_path().

r.

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Rename max_parallel_degree?
Следующее
От: Robert Haas
Дата:
Сообщение: Re: [HACKERS] Re: [HACKERS] Re: [HACKERS] Re: [HACKERS] Windows service is not starting so there’s message in log: FATAL: "could not create shared memory segment “Global/PostgreSQL.851401618”: Permission denied”