Remove ntdb protection from db_open_tdb
[kai/samba-autobuild/.git] / 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"));