mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
s3/rpc_server: shared rpc modules directory may not exist
A shared rpc modules directory may not exist if all RPC modules are built static. 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>
This commit is contained in:
parent
9395d958d6
commit
58889e04bd
@ -536,7 +536,17 @@ 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) {
|
||||
DBG_ERR("Loading shared RPC modules failed\n");
|
||||
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;
|
||||
}
|
||||
goto done;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user