smbd: remove unused change_to_root_user() from brl_timeout_fn()
authorRalph Boehme <slow@samba.org>
Wed, 23 May 2018 14:28:48 +0000 (16:28 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 12 Jul 2018 12:25:18 +0000 (14:25 +0200)
This is handled by using the root_ev_ctx in order to register
the timer event.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/blocking.c

index c281aae619de4416d5f72d2c3659a4dd84b7dcc2..095c9edeacc0b80415ea5c8e956e41beb8ff39b6 100644 (file)
@@ -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);
 }