summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-11-01 16:07:35 +1100
committerAndrew Tridgell <tridge@samba.org>2010-11-01 18:55:19 +1100
commit05b37385fcfc67f4203b2a4822f94813d11511ca (patch)
treec74f40ab5c280fffcac3db25e2d610522760239d /source4
parent28c1e4d3eb3162c0177085bae753102994a35846 (diff)
downloadsamba-05b37385fcfc67f4203b2a4822f94813d11511ca.tar.gz
samba-05b37385fcfc67f4203b2a4822f94813d11511ca.tar.bz2
samba-05b37385fcfc67f4203b2a4822f94813d11511ca.zip
s4-ldb: it is not an error for the modules directory to not exist
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/ldb/common/ldb_modules.c5
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));