[SCM] Samba Shared Repository - branch v3-6-test updated

Karolin Seeger kseeger at samba.org
Tue Jan 10 12:59:39 MST 2012


The branch, v3-6-test has been updated
       via  ff4e1df s3:lib/ctdbd_conn: try ctdbd_init_connection() as root (bug #8684)
      from  d619930 s3-printing: fix migrate printer code (bug 8618)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-6-test


- Log -----------------------------------------------------------------
commit ff4e1df575a3d7eb484b31d6afe46825ba418981
Author: Stefan Metzmacher <metze at samba.org>
Date:   Fri Dec 23 14:45:45 2011 +0100

    s3:lib/ctdbd_conn: try ctdbd_init_connection() as root (bug #8684)
    
    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 at samba.org>
    Autobuild-Date: Fri Dec 23 18:19:14 CET 2011 on sn-devel-104
    (cherry picked from commit 4a1895eb9921ad533910d08823c2814c470875fd)

-----------------------------------------------------------------------

Summary of changes:
 source3/lib/ctdbd_conn.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/lib/ctdbd_conn.c b/source3/lib/ctdbd_conn.c
index 1d01da6..4e8f090 100644
--- a/source3/lib/ctdbd_conn.c
+++ b/source3/lib/ctdbd_conn.c
@@ -1200,7 +1200,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)));


-- 
Samba Shared Repository


More information about the samba-cvs mailing list