s3:smbd: call reinit_guest_session_info() in the conf updated handler
authorRalph Boehme <slow@samba.org>
Thu, 16 May 2019 10:42:54 +0000 (12:42 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 5 Jun 2019 15:40:23 +0000 (15:40 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13944

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/smbd/server.c

index 3ac9be90f7dc6486892d44905c11f35e714921ff..ef79aba5bcf74fc255bbb54a42e7e91b6fe850a4 100644 (file)
@@ -108,12 +108,18 @@ static void smbd_parent_conf_updated(struct messaging_context *msg,
 {
        struct tevent_context *ev_ctx =
                talloc_get_type_abort(private_data, struct tevent_context);
+       bool ok;
 
        DEBUG(10,("smbd_parent_conf_updated: Got message saying smb.conf was "
                  "updated. Reloading.\n"));
        change_to_root_user();
        reload_services(NULL, NULL, false);
        printing_subsystem_update(ev_ctx, msg, false);
+
+       ok = reinit_guest_session_info(NULL);
+       if (!ok) {
+               DBG_ERR("Failed to reinit guest info\n");
+       }
 }
 
 /*******************************************************************