diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-11-20 00:35:13 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-11-20 00:35:13 +0000 |
| commit | e719591ea31a5ebd85a3aefcf2306e7f69345331 (patch) | |
| tree | 7a7db24501a242252bbaede6a80ed00b6898a1b9 /src | |
| parent | 7506677b62c823d12d27a7c8ff93c69155a2f107 (diff) | |
| download | postgresql-e719591ea31a5ebd85a3aefcf2306e7f69345331.tar.gz | |
Make sure we produce a useful error message for the case where the
postgresql.crt file simply isn't there, too.
Diffstat (limited to 'src')
| -rw-r--r-- | src/interfaces/libpq/fe-secure.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/interfaces/libpq/fe-secure.c b/src/interfaces/libpq/fe-secure.c index 0e09a9941e..6b8d98001d 100644 --- a/src/interfaces/libpq/fe-secure.c +++ b/src/interfaces/libpq/fe-secure.c @@ -11,7 +11,7 @@ * * * IDENTIFICATION - * $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 $ * * NOTES * [ 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) int (*cb) () = NULL; /* how to read user password */ char sebuf[256]; - if (pqGetpwuid(getuid(), &pwdstr, pwdbuf, sizeof(pwdbuf), &pwd) != 0) { printfPQExpBuffer(&conn->errorMessage, @@ -772,8 +771,6 @@ client_cert_cb(SSL *ssl, X509 **x509, EVP_PKEY **pkey) /* read the user certificate */ snprintf(fnbuf, sizeof(fnbuf), "%s/.postgresql/postgresql.crt", pwd->pw_dir); - if (stat(fnbuf, &buf) == -1) - return 0; if ((fp = fopen(fnbuf, "r")) == NULL) { printfPQExpBuffer(&conn->errorMessage, |
