mirror of
https://github.com/samba-team/samba.git
synced 2025-03-30 06:50:24 +03:00
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
This commit is contained in:
parent
31db5e667b
commit
4a1895eb99
@ -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)));
|
||||
|
Loading…
x
Reference in New Issue
Block a user