Alex Hunsaker wrote: > On Sat, Dec 27, 2008 at 11:50, Andrew Chernow <a...@esilo.com> wrote: >> Why does pqGetHomeDirectory have to succeed to use conn->sslrootcert. Maybe >> this should be an OR of the two since sslrootcert is not dependent on >> homedir? >> >> around line 970 src/interfaces/libpq/fe-secure.c >> >> if (conn->sslrootcert || pqGetHomeDirectory(homedir, sizeof(homedir))) > > Certainly, did we miss anywhere else?
I agree it looks strange. That said, have you actually seen a case where pqGetHomeDirectory() fails? Or did you just notice the code? //Magnus -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers