Commit 5c462175 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Check -T and -M arguments sooner.

Fixes #2217
parent 4752b126
......@@ -758,6 +758,11 @@ main(int argc, char * const *argv)
VJ_master(JAIL_MASTER_LOW);
}
if (M_arg != NULL)
mgt_cli_master(M_arg);
if (T_arg != NULL)
mgt_cli_telnet(T_arg);
if (VIN_N_Arg(n_arg, &heritage.name, &dirname, NULL) != 0)
ARGV_ERR("Invalid instance (-n) name: %s\n", strerror(errno));
......@@ -844,11 +849,6 @@ main(int argc, char * const *argv)
if (strcmp(S_arg, "none"))
mgt_cli_secret(S_arg);
if (M_arg != NULL)
mgt_cli_master(M_arg);
if (T_arg != NULL)
mgt_cli_telnet(T_arg);
mgt_SHM_Create();
if (!d_flag && !mgt_has_vcl() && !novcl)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment