From: Ralph Boehme Date: Wed, 23 May 2018 14:28:48 +0000 (+0200) Subject: smbd: remove unused change_to_root_user() from brl_timeout_fn() X-Git-Tag: ldb-1.5.0~338 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c310647e560abc2343ef2ff0ab15daab0fba2650;p=thirdparty%2Fsamba.git smbd: remove unused change_to_root_user() from brl_timeout_fn() This is handled by using the root_ev_ctx in order to register the timer event. Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/blocking.c b/source3/smbd/blocking.c index c281aae619d..095c9edeacc 100644 --- a/source3/smbd/blocking.c +++ b/source3/smbd/blocking.c @@ -47,9 +47,6 @@ void brl_timeout_fn(struct tevent_context *event_ctx, TALLOC_FREE(sconn->smb1.locks.brl_timeout); } - change_to_root_user(); /* TODO: Possibly run all timed events as - * root */ - process_blocking_lock_queue(sconn); }