We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent7506677 commite719591Copy full SHA for e719591
src/interfaces/libpq/fe-secure.c
@@ -11,7 +11,7 @@
11
*
12
13
* IDENTIFICATION
14
- * $PostgreSQL: pgsql/src/interfaces/libpq/fe-secure.c,v 1.56 2004/11/20 00:18:18 tgl Exp $
+ * $PostgreSQL: pgsql/src/interfaces/libpq/fe-secure.c,v 1.57 2004/11/20 00:35:13 tgl Exp $
15
16
* NOTES
17
* [ Most of these notes are wrong/obsolete, but perhaps not all ]
@@ -761,7 +761,6 @@ client_cert_cb(SSL *ssl, X509 **x509, EVP_PKEY **pkey)
761
int(*cb) ()=NULL;/* how to read user password */
762
charsebuf[256];
763
764
-
765
if (pqGetpwuid(getuid(),&pwdstr,pwdbuf,sizeof(pwdbuf),&pwd)!=0)
766
{
767
printfPQExpBuffer(&conn->errorMessage,
@@ -772,8 +771,6 @@ client_cert_cb(SSL *ssl, X509 **x509, EVP_PKEY **pkey)
772
771
/* read the user certificate */
773
snprintf(fnbuf,sizeof(fnbuf),"%s/.postgresql/postgresql.crt",
774
pwd->pw_dir);
775
-if (stat(fnbuf,&buf)==-1)
776
-return0;
777
if ((fp=fopen(fnbuf,"r"))==NULL)
778
779