summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-10-30 09:03:10 +1100
committerAndrew Bartlett <abartlet@samba.org>2009-11-02 16:36:53 +1100
commit7d38bb4e93f298a9edb11d5c7d3301029c94c326 (patch)
tree0d620a4b3b33009c632515b55b226d2361115709 /source4/dsdb
parent1ac8ef155f9e41a3c68e8e34ad8a14fb6c6d0365 (diff)
downloadsamba-7d38bb4e93f298a9edb11d5c7d3301029c94c326.tar.gz
samba-7d38bb4e93f298a9edb11d5c7d3301029c94c326.tar.bz2
samba-7d38bb4e93f298a9edb11d5c7d3301029c94c326.zip
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
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/samdb/samdb.c3
1 files changed, 0 insertions, 3 deletions
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;
}