From b4b8b7b5689f04fe4cdf332d7b3e415274a4adfd Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Fri, 1 Apr 2011 19:36:50 +0000 Subject: [PATCH] Allow absolute paths for mechglue libraries. From r24736 in users/lhoward/moonshot-mechglue/fixes. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24781 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/gssapi/mechglue/g_initialize.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/gssapi/mechglue/g_initialize.c b/src/lib/gssapi/mechglue/g_initialize.c index caeec9223..4ad26e3dc 100644 --- a/src/lib/gssapi/mechglue/g_initialize.c +++ b/src/lib/gssapi/mechglue/g_initialize.c @@ -1159,7 +1159,11 @@ const char *fileName; modOptions = NULL; } - snprintf(sharedPath, sizeof(sharedPath), "%s%s", MECH_LIB_PREFIX, sharedLib); + if (sharedLib[0] == '/') + snprintf(sharedPath, sizeof(sharedPath), "%s", sharedLib); + else + snprintf(sharedPath, sizeof(sharedPath), "%s%s", + MECH_LIB_PREFIX, sharedLib); /* * are we creating a new mechanism entry or -- 2.26.2