Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Aug 2005 08:45:11 +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:  <200508160845.j7G8jBnx052656@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200508160845.j7G8jBnx052656>