From 7d38bb4e93f298a9edb11d5c7d3301029c94c326 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 30 Oct 2009 09:03:10 +1100 Subject: Remove special case logic in 'samdb_relative_path'. 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 | 3 --- 1 file changed, 3 deletions(-) (limited to 'source4/dsdb') diff --git a/source4/dsdb/samdb/samdb.c b/source4/dsdb/samdb/samdb.c index b3ba63388d..0ccceddf6b 100644 --- a/source4/dsdb/samdb/samdb.c +++ b/source4/dsdb/samdb/samdb.c @@ -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; } -- cgit