Changeset 216 in openpam


Ignore:
Timestamp:
May 13, 2003, 2:42:04 PM (11 years ago)
Author:
des
Message:

Use RTLD_LAZY rather than RTLD_NOW (which apparently isn't supported
on all platforms, notably OpenBSD).

Submitted by: Mike Petullo <mike@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/openpam_dynamic.c

    r208 r216  
    3232 * SUCH DAMAGE. 
    3333 * 
    34  * $P4: //depot/projects/openpam/lib/openpam_dynamic.c#7 $ 
     34 * $P4: //depot/projects/openpam/lib/openpam_dynamic.c#8 $ 
    3535 */ 
    3636 
     
    6565        if (asprintf(&vpath, "%s.%d", path, LIB_MAJ) == -1) 
    6666                goto buf_err; 
    67         if ((dlh = dlopen(vpath, RTLD_NOW)) == NULL) { 
     67        if ((dlh = dlopen(vpath, RTLD_LAZY)) == NULL) { 
    6868                openpam_log(PAM_LOG_DEBUG, "%s: %s", vpath, dlerror()); 
    6969                *strrchr(vpath, '.') = '\0'; 
    70                 if ((dlh = dlopen(vpath, RTLD_NOW)) == NULL) { 
     70                if ((dlh = dlopen(vpath, RTLD_LAZY)) == NULL) { 
    7171                        openpam_log(PAM_LOG_DEBUG, "%s: %s", vpath, dlerror()); 
    7272                        free(module); 
Note: See TracChangeset for help on using the changeset viewer.