1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-12 20:58:37 +03:00

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
This commit is contained in:
Andrew Bartlett 2009-10-30 09:03:10 +11:00
parent 1ac8ef155f
commit 7d38bb4e93

View 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;
}