[PATCH] get_home_path: use HOME

From: Rudolf Gavlas <r(dot)stu3(dot)1(at)googlemail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: [PATCH] get_home_path: use HOME
Date: 2016-09-20 12:40:58
Message-ID: CAEH6cQqbdbXoUHJBbX9ixwfjFFsUC-a8hFntKcci=diWgBb3fQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

Attachment Content-Type Size
getenv_HOME.patch text/x-patch 888 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2016-09-20 12:52:23 Re: "Some tests to cover hash_index"
Previous Message Jesper Pedersen 2016-09-20 12:40:34 Re: pageinspect: Hash index support