mirror of
https://github.com/samba-team/samba.git
synced 2025-03-11 16:58:40 +03:00
smbd: let create_conn_struct_tos() use create_conn_struct_as_root() directly
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
b71362b176
commit
b5302c6bc4
@ -430,13 +430,15 @@ NTSTATUS create_conn_struct_tos(struct messaging_context *msg,
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
}
|
||||
|
||||
status = create_conn_struct(c,
|
||||
become_root();
|
||||
status = create_conn_struct_as_root(c,
|
||||
ev,
|
||||
msg,
|
||||
&c->conn,
|
||||
snum,
|
||||
path,
|
||||
session_info);
|
||||
unbecome_root();
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
TALLOC_FREE(c);
|
||||
return status;
|
||||
|
Loading…
x
Reference in New Issue
Block a user