mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
reload_services needs to be called prior to init_files but after
get_myname.
(This used to be commit 9ab81caa06
)
This commit is contained in:
parent
6d698d51b3
commit
37c9693fc8
@ -446,8 +446,6 @@ void exit_server(char *reason)
|
||||
****************************************************************************/
|
||||
static void init_structs(void)
|
||||
{
|
||||
get_myname(myhostname,NULL);
|
||||
|
||||
conn_init();
|
||||
file_init();
|
||||
init_rpc_pipe_hnd(); /* for RPC pipes */
|
||||
@ -614,11 +612,13 @@ static void usage(char *pname)
|
||||
exit(1);
|
||||
}
|
||||
|
||||
init_structs();
|
||||
|
||||
get_myname(myhostname,NULL);
|
||||
|
||||
if (!reload_services(False))
|
||||
return(-1);
|
||||
|
||||
init_structs();
|
||||
|
||||
/*
|
||||
* Set the machine NETBIOS name if not already
|
||||
* set from the config file.
|
||||
|
Loading…
Reference in New Issue
Block a user