Revert "smbd: remove unused change_to_root_user() from smbd_sig_hup_handler()"
authorRalph Boehme <slow@samba.org>
Thu, 27 Dec 2018 10:37:03 +0000 (11:37 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 11 Jan 2019 22:11:15 +0000 (23:11 +0100)
This reverts commit d0b1f96f086bdd613644f64b3f75ee8c4388f674.

See the discussion in

https://lists.samba.org/archive/samba-technical/2018-December/131731.html

for the reasoning behind this revert.

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

index 0a41062..dc95af1 100644 (file)
@@ -998,6 +998,7 @@ 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);
 }