The Samba-Bugzilla – Attachment 8501 Details for
Bug 9610
dsdb: Make secrets_tdb_sync cope with -H secrets.ldb
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for v4-0-test
tmp40.diff (text/plain), 1.12 KB, created by
Stefan Metzmacher
on 2013-01-27 14:21:31 UTC
(
hide
)
Description:
Patch for v4-0-test
Filename:
MIME Type:
Creator:
Stefan Metzmacher
Created:
2013-01-27 14:21:31 UTC
Size:
1.12 KB
patch
obsolete
>From 27abedfdbee34062d29022e707288e0a5c5181a8 Mon Sep 17 00:00:00 2001 >From: Andrew Bartlett <abartlet@samba.org> >Date: Wed, 12 Sep 2012 15:34:29 +0200 >Subject: [PATCH] dsdb: Make secrets_tdb_sync cope with -H secrets.ldb > >The issue was, without a / in the path, we did not cope. > >Andrew Bartlett >Reviewed-by: Michael Adam <obnox@samba.org> >(cherry picked from commit 945bc84818039b79f4d9b7982e24c1e0e7dd8a45) >--- > source4/dsdb/samdb/ldb_modules/secrets_tdb_sync.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > >diff --git a/source4/dsdb/samdb/ldb_modules/secrets_tdb_sync.c b/source4/dsdb/samdb/ldb_modules/secrets_tdb_sync.c >index c742d86..e90fc77 100644 >--- a/source4/dsdb/samdb/ldb_modules/secrets_tdb_sync.c >+++ b/source4/dsdb/samdb/ldb_modules/secrets_tdb_sync.c >@@ -498,11 +498,12 @@ static int secrets_tdb_sync_init(struct ldb_module *module) > p = strrchr(private_dir, '/'); > if (p) { > *p = '\0'; >+ secrets_init_path(private_dir); > } else { >- return ldb_operr(ldb); >+ secrets_init_path("."); > } > >- secrets_init_path(private_dir); >+ TALLOC_FREE(private_dir); > > data->secrets_tdb = secrets_db_ctx(); > >-- >1.7.9.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
abartlet
:
review+
Actions:
View
Attachments on
bug 9610
: 8501