cvs commit: src/sbin/geom/core geom.c

Pawel Jakub Dawidek pjd at FreeBSD.org
Sun Aug 14 21:55:19 GMT 2005


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


More information about the cvs-all mailing list