Re: [BUGS] More SSL questions..

Bruce Momjian <[email protected]>
Newsgroups gmane.comp.db.postgresql.devel.win32
Message-ID <[email protected]>
Tom Lane wrote:
> Bruce Momjian <[email protected]> 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
  [email protected]               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.