]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC: sbin/geom/core/geom.c 1.23
authorpjd <pjd@FreeBSD.org>
Tue, 16 Aug 2005 08:45:11 +0000 (08:45 +0000)
committerpjd <pjd@FreeBSD.org>
Tue, 16 Aug 2005 08:45:11 +0000 (08:45 +0000)
commitc385fd9b5d74997a088bf019d5a10112c26c2c86
tree67391b4904245299c42a3d1d0cd0d9e6747f2635
parent0bd357e9d34bafe86b2395d05be27e40ed99c981
MFC: sbin/geom/core/geom.c 1.23

Unfortunately dlerror(3) returns string, so there is no clean way to
ignore "no such file" errors only, which I wanted to do.
Because of this I ignored all other errors on dlopen(3) failure as well,
which isn't good.
Fix this situation by calling access(2) on library file first and ignore
only ENOENT error. This allows to report all the rest of dlopen(3) errors.

Approved by: re (kensmith)
sbin/geom/core/geom.c