Remove ntdb protection from tdb_wrap
authorVolker Lendecke <vl@samba.org>
Thu, 12 Mar 2015 13:39:12 +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/tdb_wrap/tdb_wrap.c

index 62dce062c7c1d552310bb8cbd800ec0931df7e39..a1bddf394869b214f71f1415b6f387ab53d34484 100644 (file)
@@ -21,7 +21,6 @@
 
 #include "replace.h"
 #include "lib/util/dlinklist.h"
-#include "ccan/str/str.h"
 #include "lib/util/debug.h"
 #include "tdb_wrap.h"
 
@@ -135,14 +134,6 @@ struct tdb_wrap *tdb_wrap_open(TALLOC_CTX *mem_ctx,
                return NULL;
        }
 
-       /* If they specify a .ntdb extension, but the code hasn't been
-        * converted, we want to complain. */
-       if (strends(name, ".ntdb")) {
-               DEBUG(2, ("tdb(%s): This code does not yet understand ntdb.  Please report.\n", name));
-               errno = EINVAL;
-               return NULL;
-       }
-
        result = talloc(mem_ctx, struct tdb_wrap);
        if (result == NULL) {
                return NULL;