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:
parent
1ac8ef155f
commit
7d38bb4e93
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user