Treat ENOTDIR as ENOENT when looking for client certificate file

Magnus Hagander <magnus@hagander.net>

Commit: a6f8e7d9590d157e379efe4a4edfc32ab283ec42
Author: Magnus Hagander <magnus@hagander.net>
Date: 2011-12-03T14:05:35Z
Releases: 9.1.3
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