From 1ab7bd1bfbfe5a27c91315d98c4e4949608d83e9 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 4 Nov 2010 20:13:17 +1100 Subject: s4-ldb: don't load modules from the same directory twice this prevents samba dying if you do a 'make install' while it is running. Otherwise the make install changes the inode numbers of the modules in the modules directory, causing them to reload, which causes multiple modules of the same name to try and load --- source4/lib/ldb/common/ldb_modules.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source4/lib/ldb/common/ldb_modules.c b/source4/lib/ldb/common/ldb_modules.c index 1457298798..96e3fed7eb 100644 --- a/source4/lib/ldb/common/ldb_modules.c +++ b/source4/lib/ldb/common/ldb_modules.c @@ -844,7 +844,7 @@ static int ldb_modules_load_dir(const char *modules_dir, const char *version); from the first ldb_init() is just a convenient way to ensure it is called early enough. */ -static int ldb_modules_load_one(const char *path, const char *version) +static int ldb_modules_load_path(const char *path, const char *version) { void *handle; int (*init_fn)(const char *); @@ -969,7 +969,7 @@ static int ldb_modules_load_dir(const char *modules_dir, const char *version) TYPESAFE_QSORT(modlist, num_modules, qsort_string); for (i=0; i