cvs commit: src/sbin/geom/core geom.c
Pawel Jakub Dawidek
pjd at FreeBSD.org
Tue Aug 16 08:45:12 GMT 2005
pjd 2005-08-16 08:45:11 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_6)
sbin/geom/core geom.c
Log:
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)
Revision Changes Path
1.22.2.1 +12 -11 src/sbin/geom/core/geom.c
More information about the cvs-src
mailing list