The Samba-Bugzilla – Attachment 7219 Details for
Bug 8684
Missing become_root() in ctdbd_traverse()
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for v3-6-test
tmp36.diff (text/plain), 1.13 KB, created by
Stefan Metzmacher
on 2012-01-02 08:39:42 UTC
(
hide
)
Description:
Patch for v3-6-test
Filename:
MIME Type:
Creator:
Stefan Metzmacher
Created:
2012-01-02 08:39:42 UTC
Size:
1.13 KB
patch
obsolete
>From d46aad828fe11c9028e011653352470ece43e9c4 Mon Sep 17 00:00:00 2001 >From: Stefan Metzmacher <metze@samba.org> >Date: Fri, 23 Dec 2011 14:45:45 +0100 >Subject: [PATCH] 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@samba.org> >Autobuild-Date: Fri Dec 23 18:19:14 CET 2011 on sn-devel-104 >(cherry picked from commit 4a1895eb9921ad533910d08823c2814c470875fd) >--- > source3/lib/ctdbd_conn.c | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > >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))); >-- >1.7.4.1 >
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:
vl
:
review+
Actions:
View
Attachments on
bug 8684
: 7219 |
7220