Treat ENOTDIR as ENOENT when looking for client certificate file

Magnus Hagander <magnus@hagander.net>

Commit: 5b40677986984d450a2a16e515fe44d90dfeef02
Author: Magnus Hagander <magnus@hagander.net>
Date: 2011-12-03T14:05:24Z
Releases: 9.2.0
Treat ENOTDIR as ENOENT when looking for client certificate file

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

Files

PathChange+/−
src/interfaces/libpq/fe-secure.c modified +1 −1