Date: Sun, 14 Aug 2005 21:55:18 +0000 (UTC) From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sbin/geom/core geom.c Message-ID: <200508142155.j7ELtI0l089489@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
pjd 2005-08-14 21:55:18 UTC FreeBSD src repository Modified files: sbin/geom/core geom.c Log: 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. MFC after: 3 days Revision Changes Path 1.23 +12 -11 src/sbin/geom/core/geom.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200508142155.j7ELtI0l089489>