Set hostname /after/ having read the config file.

Signed-off-by: Benjamin Cama <benoar@dolka.fr>
This commit is contained in:
Benjamin Cama 2011-09-19 18:10:03 +02:00
parent bf41bf2eac
commit 0b06de8105
3 changed files with 19 additions and 15 deletions

View file

@ -907,7 +907,8 @@ void become_master(void); // We're the master; kick off any required master init
// cli.c
void init_cli(char *hostname);
void init_cli();
void cli_init_hostname(char *hostname);
void cli_do_file(FILE *fh);
void cli_do(int sockfd);
int cli_arg_help(struct cli_def *cli, int cr_ok, char *entry, ...);