Remove special case logic in 'samdb_relative_path'.
authorAndrew Bartlett <abartlet@samba.org>
Thu, 29 Oct 2009 22:03:10 +0000 (09:03 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 2 Nov 2009 05:36:53 +0000 (16:36 +1100)
While this logic (avoiding to prefix a non-filename with a path) is
important in the code this was copied from (private_dir()), none of
the callers of this function need it.

Andrew Bartlett

source4/dsdb/samdb/samdb.c

index b3ba63388d71e4e693b56c0e12beb96ea11cc8d6..0ccceddf6baae5294c4ffaab31e314e5da860663 100644 (file)
@@ -52,9 +52,6 @@ char *samdb_relative_path(struct ldb_context *ldb,
        if (name == NULL) {
                return NULL;
        }
-       if (name[0] == 0 || name[0] == '/' || strstr(name, ":/")) {
-               return talloc_strdup(mem_ctx, name);
-       }
        if (strncmp("tdb://", base_url, 6) == 0) {
                base_url = base_url+6;
        }