Make the various places that determine the user's "home directory"
Tom Lane <tgl@sss.pgh.pa.us>
Make the various places that determine the user's "home directory" consistent. On Unix we now always consult getpwuid(); $HOME isn't used at all. On Windows the code currently consults $USERPROFILE, or $HOME if that's not defined, but I expect this will change as soon as the win32 hackers come to a consensus. Nothing done yet about changing the file names used underneath $USERPROFILE.
Files
| Path | Change | +/− |
|---|---|---|
| src/include/port.h | modified | +1 −7 |
| src/interfaces/libpq/fe-connect.c | modified | +41 −25 |
| src/interfaces/libpq/fe-secure.c | modified | +2 −31 |
| src/interfaces/libpq/libpq-int.h | modified | +2 −1 |
| src/port/path.c | modified | +25 −11 |