From owner-cvs-src@FreeBSD.ORG Sun Aug 14 21:55:19 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 954A816A432; Sun, 14 Aug 2005 21:55:19 +0000 (GMT) (envelope-from pjd@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 248EE43D48; Sun, 14 Aug 2005 21:55:19 +0000 (GMT) (envelope-from pjd@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j7ELtJtb089490; Sun, 14 Aug 2005 21:55:19 GMT (envelope-from pjd@repoman.freebsd.org) Received: (from pjd@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j7ELtI0l089489; Sun, 14 Aug 2005 21:55:18 GMT (envelope-from pjd) Message-Id: <200508142155.j7ELtI0l089489@repoman.freebsd.org> From: Pawel Jakub Dawidek Date: Sun, 14 Aug 2005 21:55:18 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sbin/geom/core geom.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Aug 2005 21:55:19 -0000 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