Revert r24815 and the RTLD_NODELETE part of r24744, which was
authorGreg Hudson <ghudson@mit.edu>
Sun, 3 Apr 2011 12:34:43 +0000 (12:34 +0000)
committerGreg Hudson <ghudson@mit.edu>
Sun, 3 Apr 2011 12:34:43 +0000 (12:34 +0000)
committed by accident.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24827 dc483132-0cff-0310-8789-dd5450dbe970

src/util/support/plugins.c

index 96b9d948d7d3e3181a2a9eba9841913fb28bf1c2..f457f354267c3f663f416fa397f4951c87a6dec7 100644 (file)
@@ -258,17 +258,9 @@ krb5int_open_plugin (const char *filepath, struct plugin_file_handle **h, struct
 #endif /* USE_CFBUNDLE */
 
 #ifdef RTLD_GROUP
-# ifdef RTLD_NODELETE
-#  define PLUGIN_DLOPEN_FLAGS (RTLD_NOW | RTLD_LOCAL | RTLD_GROUP | RTLD_NODELETE)
-# else
-#  define PLUGIN_DLOPEN_FLAGS (RTLD_NOW | RTLD_LOCAL | RTLD_GROUP)
-# endif
+#define PLUGIN_DLOPEN_FLAGS (RTLD_NOW | RTLD_LOCAL | RTLD_GROUP)
 #else
-# ifdef RTLD_NODELETE
-#  define PLUGIN_DLOPEN_FLAGS (RTLD_NOW | RTLD_LOCAL | RTLD_NODELETE)
-# else
-#  define PLUGIN_DLOPEN_FLAGS (RTLD_NOW | RTLD_LOCAL)
-# endif
+#define PLUGIN_DLOPEN_FLAGS (RTLD_NOW | RTLD_LOCAL)
 #endif
         if (!err) {
             handle = dlopen(filepath, PLUGIN_DLOPEN_FLAGS);