Re: [BUGS] More SSL questions..

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Magnus Hagander <mha(at)sollentuna(dot)net>, Andrew Dunstan <andrew(at)dunslane(dot)net>, "Matthew T(dot) O'Connor" <matthew(at)zeut(dot)net>, pgsql-hackers-win32(at)postgresql(dot)org
Subject: Re: [BUGS] More SSL questions..
Date: 2005-01-06 19:17:45
Message-ID: 200501061917.j06JHjh04132@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers-win32

Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)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(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message Tom Lane 2005-01-06 19:23:21 Re: [BUGS] More SSL questions..
Previous Message Tom Lane 2005-01-06 19:14:10 Re: [BUGS] More SSL questions..