From: Greg Hudson Date: Fri, 1 Apr 2011 19:36:50 +0000 (+0000) Subject: Allow absolute paths for mechglue libraries. From r24736 in X-Git-Tag: krb5-1.10-alpha1~506 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b4b8b7b5689f04fe4cdf332d7b3e415274a4adfd;p=krb5.git 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 --- 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