The Samba-Bugzilla – Attachment 12883 Details for
Bug 12184
Loading shared RPC modules failed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for 4.5 and 4.6 cherry-picked from master
bug12184-v45,46.patch (text/plain), 1.80 KB, created by
Ralph Böhme
on 2017-01-31 07:01:40 UTC
(
hide
)
Description:
Patch for 4.5 and 4.6 cherry-picked from master
Filename:
MIME Type:
Creator:
Ralph Böhme
Created:
2017-01-31 07:01:40 UTC
Size:
1.80 KB
patch
obsolete
>From f969814fdf0c847985afa37776bf58a9336a4899 Mon Sep 17 00:00:00 2001 >From: Ralph Boehme <slow@samba.org> >Date: Mon, 30 Jan 2017 18:49:39 +0100 >Subject: [PATCH] s3/rpc_server: shared rpc modules loading > >The previous commit 58889e04bd545d7420d1193e134351bd0ccb8430 for this >bug was broken as it didn't move the goto into the "if (errno != >ENOENT)" condition. > >This updated fix folds the test "mod_init_fns == NULL" and the check for >the errno into one if condition. > >Bug: https://bugzilla.samba.org/show_bug.cgi?id=12184 > >Signed-off-by: Ralph Boehme <slow@samba.org> >Reviewed-by: Jeremy Allison <jra@samba.org> >(cherry picked from commit 9785fe5af6613a728a7d92c82bbc31cabbe3a0b9) >--- > source3/rpc_server/rpc_service_setup.c | 21 +++++++++------------ > 1 file changed, 9 insertions(+), 12 deletions(-) > >diff --git a/source3/rpc_server/rpc_service_setup.c b/source3/rpc_server/rpc_service_setup.c >index 263fcaf..751a638 100644 >--- a/source3/rpc_server/rpc_service_setup.c >+++ b/source3/rpc_server/rpc_service_setup.c >@@ -535,18 +535,15 @@ bool dcesrv_ep_setup(struct tevent_context *ev_ctx, > > /* Initialize shared modules */ > mod_init_fns = load_samba_modules(tmp_ctx, "rpc"); >- if (mod_init_fns == NULL) { >- if (errno != ENOENT) { >- /* >- * ENOENT means the directory doesn't exist >- * which can happen if all modules are >- * static. So ENOENT is ok, everything else is >- * not ok. >- */ >- DBG_ERR("Loading shared RPC modules failed [%s]\n", >- strerror(errno)); >- ok = false; >- } >+ if ((mod_init_fns == NULL) && (errno != ENOENT)) { >+ /* >+ * ENOENT means the directory doesn't exist which can happen if >+ * all modules are static. So ENOENT is ok, everything else is >+ * not ok. >+ */ >+ DBG_ERR("Loading shared RPC modules failed [%s]\n", >+ strerror(errno)); >+ ok = false; > goto done; > } > >-- >2.9.3 >
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:
jra
:
review+
Actions:
View
Attachments on
bug 12184
:
12444
|
12868
| 12883