diff options
author | Luke Howard <lukeh@padl.com> | 2011-03-21 03:36:57 +0000 |
---|---|---|
committer | Luke Howard <lukeh@padl.com> | 2011-03-21 03:36:57 +0000 |
commit | 75fc410a4cd2bb3f4379f8229050da8c1272ced5 (patch) | |
tree | 7d6a76134b52c072d638f811b8d9da6cc617ae8f /src/lib/gssapi | |
parent | 39870db58216429877b06d7918069382204d3c9e (diff) | |
download | krb5-75fc410a4cd2bb3f4379f8229050da8c1272ced5.zip krb5-75fc410a4cd2bb3f4379f8229050da8c1272ced5.tar.gz krb5-75fc410a4cd2bb3f4379f8229050da8c1272ced5.tar.bz2 |
Allow absolute paths for mechglue libraries
git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/moonshot-mechglue-fixes@24736 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/gssapi')
-rw-r--r-- | src/lib/gssapi/mechglue/g_initialize.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/gssapi/mechglue/g_initialize.c b/src/lib/gssapi/mechglue/g_initialize.c index 38c540b..60f82fd 100644 --- a/src/lib/gssapi/mechglue/g_initialize.c +++ b/src/lib/gssapi/mechglue/g_initialize.c @@ -1174,7 +1174,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 |