summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-12-23 14:45:45 +0100
committerStefan Metzmacher <metze@samba.org>2011-12-23 18:19:13 +0100
commit4a1895eb9921ad533910d08823c2814c470875fd (patch)
tree75eb27bd2f38921771f3868119c5a34dd402844b
parent31db5e667bbb388b75a5dc1790facf85d4daf629 (diff)
downloadsamba-4a1895eb9921ad533910d08823c2814c470875fd.tar.gz
samba-4a1895eb9921ad533910d08823c2814c470875fd.tar.bz2
samba-4a1895eb9921ad533910d08823c2814c470875fd.zip
s3:lib/ctdbd_conn: try ctdbd_init_connection() as root
ctdbd_traverse is only called if the main db_context is already open. So if we could get to information via dbwrap_fetch, we should also be able to traverse. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Dec 23 18:19:14 CET 2011 on sn-devel-104
-rw-r--r--source3/lib/ctdbd_conn.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/lib/ctdbd_conn.c b/source3/lib/ctdbd_conn.c
index 9d4af18ac5..9d2b544928 100644
--- a/source3/lib/ctdbd_conn.c
+++ b/source3/lib/ctdbd_conn.c
@@ -1537,7 +1537,9 @@ NTSTATUS ctdbd_traverse(uint32 db_id,
int cstatus;
struct ctdbd_traverse_state state;
+ become_root();
status = ctdbd_init_connection(NULL, &conn);
+ unbecome_root();
if (!NT_STATUS_IS_OK(status)) {
DEBUG(0, ("ctdbd_init_connection failed: %s\n",
nt_errstr(status)));