svn rev #24781: trunk/src/lib/gssapi/mechglue/
ghudson@MIT.EDU
ghudson at MIT.EDU
Fri Apr 1 15:36:50 EDT 2011
http://src.mit.edu/fisheye/changelog/krb5/?cs=24781
Commit By: ghudson
Log Message:
Allow absolute paths for mechglue libraries. From r24736 in
users/lhoward/moonshot-mechglue/fixes.
Changed Files:
U trunk/src/lib/gssapi/mechglue/g_initialize.c
Modified: trunk/src/lib/gssapi/mechglue/g_initialize.c
===================================================================
--- trunk/src/lib/gssapi/mechglue/g_initialize.c 2011-04-01 19:34:57 UTC (rev 24780)
+++ trunk/src/lib/gssapi/mechglue/g_initialize.c 2011-04-01 19:36:50 UTC (rev 24781)
@@ -1159,7 +1159,11 @@
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
More information about the cvs-krb5
mailing list