Re: [BUGS] More SSL questions.. - Mailing list pgsql-hackers-win32

From Bruce Momjian
Subject Re: [BUGS] More SSL questions..
Date
Msg-id 200501061917.j06JHjh04132@candle.pha.pa.us
Whole thread Raw
In response to Re: [BUGS] More SSL questions..  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [BUGS] More SSL questions..  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers-win32
Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > Magnus, where are you on getting a patch to
> > fe-connect.c::pqGetHomeDirectory() for Win32?  Right now the code is
> > reading USERPROFILE or HOME.
>
> Nope; as of CVS tip it's
>
> #else
>     char        tmppath[MAX_PATH];
>
>     ZeroMemory(tmppath, sizeof(tmppath));
>     if (!SHGetSpecialFolderPath(NULL, tmppath, CSIDL_APPDATA, FALSE))
>         return false;
>     snprintf(ret_path, MAXPGPATH, "%s/postgresql", tmppath);
>     return true;
> #endif
>
> This needs to be tested of course.

Uh, by default this directory is not going to exist, right?  It doesn't
in Unix home directories.  And we need to change that to upper/lower
"PostgreSQL", though that will not make a difference on Win32.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-hackers-win32 by date:

Previous
From: Tom Lane
Date:
Subject: Re: [BUGS] More SSL questions..
Next
From: Tom Lane
Date:
Subject: Re: [BUGS] More SSL questions..