Changeset 683 in openpam for trunk/lib


Ignore:
Timestamp:
Apr 14, 2013, 2:49:59 PM (8 years ago)
Author:
Dag-Erling Smørgrav
Message:

Log an error if open() failed for any other reason than ENOENT.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/libpam/openpam_dynamic.c

    r682 r683  
    7575
    7676        openpam_log(PAM_LOG_LIBDEBUG, "dlopen(%s)", modfn);
    77         if ((fd = open(modfn, O_RDONLY)) < 0)
    78                 return (NULL);
     77        if ((fd = open(modfn, O_RDONLY)) < 0) {
     78                if (errno != ENOENT)
     79                        openpam_log(PAM_LOG_ERROR, "%s: %m", modfn);
     80                return (NULL);
     81        }
    7982        if (OPENPAM_FEATURE(VERIFY_MODULE_FILE) &&
    8083            openpam_check_desc_owner_perms(modfn, fd) != 0) {
Note: See TracChangeset for help on using the changeset viewer.