[PATCH 3/4] Make update_hostname function do just one thing - update ksdata.