diff options
Diffstat (limited to 'source4/lib/ldb')
-rw-r--r-- | source4/lib/ldb/common/ldb_modules.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/lib/ldb/common/ldb_modules.c b/source4/lib/ldb/common/ldb_modules.c index 8ff04e118e..6c0cbfcb00 100644 --- a/source4/lib/ldb/common/ldb_modules.c +++ b/source4/lib/ldb/common/ldb_modules.c @@ -888,6 +888,11 @@ static int ldb_modules_load_dir(const char *modules_dir, const char *version) dir = opendir(modules_dir); if (dir == NULL) { + if (errno == ENOENT) { + talloc_free(tmp_ctx); + /* we don't have any modules */ + return LDB_SUCCESS; + } talloc_free(tmp_ctx); fprintf(stderr, "ldb: unable to open modules directory '%s' - %s\n", modules_dir, strerror(errno)); |