diff options
-rw-r--r-- | source4/lib/ldb/common/ldb_modules.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/lib/ldb/common/ldb_modules.c b/source4/lib/ldb/common/ldb_modules.c index ab06dc5788..123d218667 100644 --- a/source4/lib/ldb/common/ldb_modules.c +++ b/source4/lib/ldb/common/ldb_modules.c @@ -905,6 +905,13 @@ static int ldb_modules_load_path(const char *path, const char *version) } ret = init_fn(version); + if (ret == LDB_ERR_ENTRY_ALREADY_EXISTS) { + /* the module is already registered - ignore this, as + * it can happen if LDB_MODULES_PATH points at both + * the build and install directory + */ + ret = LDB_SUCCESS; + } return ret; } |