projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
339ed21
)
Allow absolute paths for mechglue libraries. From r24736 in
author
Greg Hudson
<ghudson@mit.edu>
Fri, 1 Apr 2011 19:36:50 +0000
(19:36 +0000)
committer
Greg Hudson
<ghudson@mit.edu>
Fri, 1 Apr 2011 19:36:50 +0000
(19:36 +0000)
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
patch
|
blob
|
history
diff --git
a/src/lib/gssapi/mechglue/g_initialize.c
b/src/lib/gssapi/mechglue/g_initialize.c
index caeec92230dc9e8a07760b21a3d67f8364bba554..4ad26e3dca298f29eee3bb7143ad08d5c6287761 100644
(file)
--- 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