diff options
Diffstat (limited to 'cli')
| -rw-r--r-- | cli/src/cli-rpc-ops.c | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c index 34033b1ea93..794eab0178c 100644 --- a/cli/src/cli-rpc-ops.c +++ b/cli/src/cli-rpc-ops.c @@ -2603,8 +2603,9 @@ gf_cli3_1_gsync_config_command (gf1_cli_gsync_set_rsp rsp)          }          snprintf (cmd, PATH_MAX, -                  GSYNCD_PREFIX"/gsyncd -c %s/"GSYNC_CONF" :%s %s --config-%s%s%s", -                  rsp.glusterd_workdir, rsp.master, rsp.slave, rsp.subop, +                  GSYNCD_PREFIX"/gsyncd -c %s/"GSYNC_CONF" %s%s %s --config-%s%s%s", +                  rsp.glusterd_workdir, +                  *rsp.master ? ":" : "", rsp.master, rsp.slave, rsp.subop,                    *rsp.op_name ? " " : "", rsp.op_name);          ret = system (cmd);                  /*  | 
