Allow absolute paths for mechglue libraries. From r24736 in
authorGreg Hudson <ghudson@mit.edu>
Fri, 1 Apr 2011 19:36:50 +0000 (19:36 +0000)
committerGreg 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

index caeec92230dc9e8a07760b21a3d67f8364bba554..4ad26e3dca298f29eee3bb7143ad08d5c6287761 100644 (file)
@@ -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