mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +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:
@ -52,9 +52,6 @@ char *samdb_relative_path(struct ldb_context *ldb,
|
|||||||
if (name == NULL) {
|
if (name == NULL) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
if (name[0] == 0 || name[0] == '/' || strstr(name, ":/")) {
|
|
||||||
return talloc_strdup(mem_ctx, name);
|
|
||||||
}
|
|
||||||
if (strncmp("tdb://", base_url, 6) == 0) {
|
if (strncmp("tdb://", base_url, 6) == 0) {
|
||||||
base_url = base_url+6;
|
base_url = base_url+6;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user