PERFORCE change 31068 for review
Dag-Erling Smorgrav
des at FreeBSD.org
Tue May 13 05:42:18 PDT 2003
http://perforce.freebsd.org/chv.cgi?CH=31068
Change 31068 by des at des.at.des.thinksec.com on 2003/05/13 05:42:04
Use RTLD_LAZY rather than RTLD_NOW (which apparently isn't supported
on all platforms, notably OpenBSD).
Submitted by: Mike Petullo <mike at flyn.org>
Affected files ...
.. //depot/projects/openpam/lib/openpam_dynamic.c#8 edit
Differences ...
==== //depot/projects/openpam/lib/openpam_dynamic.c#8 (text+ko) ====
@@ -31,7 +31,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $P4: //depot/projects/openpam/lib/openpam_dynamic.c#7 $
+ * $P4: //depot/projects/openpam/lib/openpam_dynamic.c#8 $
*/
#include <dlfcn.h>
@@ -64,10 +64,10 @@
/* try versioned module first, then unversioned module */
if (asprintf(&vpath, "%s.%d", path, LIB_MAJ) == -1)
goto buf_err;
- if ((dlh = dlopen(vpath, RTLD_NOW)) == NULL) {
+ if ((dlh = dlopen(vpath, RTLD_LAZY)) == NULL) {
openpam_log(PAM_LOG_DEBUG, "%s: %s", vpath, dlerror());
*strrchr(vpath, '.') = '\0';
- if ((dlh = dlopen(vpath, RTLD_NOW)) == NULL) {
+ if ((dlh = dlopen(vpath, RTLD_LAZY)) == NULL) {
openpam_log(PAM_LOG_DEBUG, "%s: %s", vpath, dlerror());
free(module);
return (NULL);
More information about the p4-projects
mailing list