git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ac8ef1
)
Remove special case logic in 'samdb_relative_path'.
author
Andrew Bartlett
<abartlet@samba.org>
Thu, 29 Oct 2009 22:03:10 +0000
(09:03 +1100)
committer
Andrew Bartlett
<abartlet@samba.org>
Mon, 2 Nov 2009 05:36:53 +0000
(16:36 +1100)
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
patch
|
blob
|
history
diff --git
a/source4/dsdb/samdb/samdb.c
b/source4/dsdb/samdb/samdb.c
index b3ba63388d71e4e693b56c0e12beb96ea11cc8d6..0ccceddf6baae5294c4ffaab31e314e5da860663 100644
(file)
--- 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;
}