From: Stefan Metzmacher Date: Wed, 18 Apr 2018 12:29:52 +0000 (+0200) Subject: smbd: remove unused change_to_root_user() from smbd_sig_hup_handler() X-Git-Tag: ldb-1.5.0~339 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0b1f96f086bdd613644f64b3f75ee8c4388f674;p=thirdparty%2Fsamba.git smbd: remove unused change_to_root_user() from smbd_sig_hup_handler() This is handled by using the root_ev_ctx in order to register the signal event. Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/process.c b/source3/smbd/process.c index dc95af17393..0a4106257f5 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -998,7 +998,6 @@ static void smbd_sig_hup_handler(struct tevent_context *ev, talloc_get_type_abort(private_data, struct smbd_server_connection); - change_to_root_user(); DEBUG(1,("Reloading services after SIGHUP\n")); reload_services(sconn, conn_snum_used, false); }