Remove ntdb protection from db_open_tdb
authorVolker Lendecke <vl@samba.org>
Thu, 12 Mar 2015 13:39:40 +0000 (13:39 +0000)
committerMichael Adam <obnox@samba.org>
Tue, 17 Mar 2015 10:30:51 +0000 (11:30 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
lib/dbwrap/dbwrap_tdb.c

index a76d90f10bc5850b8dd39048746d7a2f6335d30b..2bc123e36d3b10f415ada6fc54e328fbd1a5e5dd 100644 (file)
@@ -24,7 +24,6 @@
 #include "lib/tdb_wrap/tdb_wrap.h"
 #include "lib/util/util_tdb.h"
 #include "system/filesys.h"
-#include "ccan/str/str.h"
 #include "lib/param/param.h"
 
 struct db_tdb_ctx {
@@ -409,12 +408,6 @@ struct db_context *db_open_tdb(TALLOC_CTX *mem_ctx,
        struct db_tdb_ctx *db_tdb;
        struct stat st;
 
-       /* Extra paranoia. */
-       if (name && strends(name, ".ntdb")) {
-               DEBUG(0, ("can't try to open %s with tdb!\n", name));
-               return NULL;
-       }
-
        result = talloc_zero(mem_ctx, struct db_context);
        if (result == NULL) {
                DEBUG(0, ("talloc failed\n"));