From owner-p4-projects Sun Apr 14 23:31:46 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id C517637B41B; Sun, 14 Apr 2002 23:31:32 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id A90AB37B419 for ; Sun, 14 Apr 2002 23:31:31 -0700 (PDT) Received: (from perforce@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3F6VVZ13705 for perforce@freebsd.org; Sun, 14 Apr 2002 23:31:31 -0700 (PDT) (envelope-from des@freebsd.org) Date: Sun, 14 Apr 2002 23:31:31 -0700 (PDT) Message-Id: <200204150631.g3F6VVZ13705@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to des@freebsd.org using -f From: Dag-Erling Smorgrav Subject: PERFORCE change 9760 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG http://people.freebsd.org/~peter/p4db/chv.cgi?CH=9760 Change 9760 by des@des.at.des.thinksec.com on 2002/04/14 23:30:42 Additional debugging messages. Affected files ... ... //depot/projects/openpam/lib/openpam_dynamic.c#4 edit Differences ... ==== //depot/projects/openpam/lib/openpam_dynamic.c#4 (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#3 $ + * $P4: //depot/projects/openpam/lib/openpam_dynamic.c#4 $ */ #include @@ -64,8 +64,10 @@ if (asprintf(&vpath, "%s.%d", path, LIB_MAJ) == -1) goto buf_err; if ((dlh = dlopen(vpath, RTLD_NOW)) == NULL) { + openpam_log(PAM_LOG_DEBUG, "%s: %s", vpath, dlerror()); *strrchr(vpath, '.') = '\0'; if ((dlh = dlopen(vpath, RTLD_NOW)) == NULL) { + openpam_log(PAM_LOG_DEBUG, "%s: %s", vpath, dlerror()); free(module); return (NULL); } @@ -74,8 +76,12 @@ if ((module->path = strdup(path)) == NULL) goto buf_err; module->dlh = dlh; - for (i = 0; i < PAM_NUM_PRIMITIVES; ++i) + for (i = 0; i < PAM_NUM_PRIMITIVES; ++i) { module->func[i] = dlsym(dlh, _pam_sm_func_name[i]); + if (module->func[i] == NULL) + openpam_log(PAM_LOG_DEBUG, "%s: %s(): %s", + vpath, _pam_sm_func_name[i], dlerror()); + } return (module); buf_err: openpam_log(PAM_LOG_ERROR, "%m"); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message