projects
/
users
/
kgrittn
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
155e56b
)
Treat ENOTDIR as ENOENT when looking for client certificate file
author
Magnus Hagander
<magnus@hagander.net>
Sat, 3 Dec 2011 14:02:53 +0000
(15:02 +0100)
committer
Magnus Hagander
<magnus@hagander.net>
Sat, 3 Dec 2011 14:05:24 +0000
(15:05 +0100)
This makes it possible to use a libpq app with home directory set
to /dev/null, for example - treating it the same as if the file
doesn't exist (which it doesn't).
Per bug #6302, reported by Diego Elio Petteno
src/interfaces/libpq/fe-secure.c
patch
|
blob
|
blame
|
history
diff --git
a/src/interfaces/libpq/fe-secure.c
b/src/interfaces/libpq/fe-secure.c
index c6963bed9480f9fb61afc70c6e91b7583f9e0bfb..a0607ae84d6d7b62bd9cb61be646150509b11956 100644
(file)
--- a/
src/interfaces/libpq/fe-secure.c
+++ b/
src/interfaces/libpq/fe-secure.c
@@
-1013,7
+1013,7
@@
initialize_SSL(PGconn *conn)
* might or might not accept the connection. Any other error,
* however, is grounds for complaint.
*/
- if (errno != ENOENT)
+ if (errno != ENOENT
&& errno != ENOTDIR
)
{
printfPQExpBuffer(&conn->errorMessage,
libpq_gettext("could not open certificate file \"%s\": %s\n"),