diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2017-09-26 22:41:47 -0400 | 
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2017-09-26 22:41:47 -0400 | 
| commit | e82314b1bf75ee7240e70a8e97aac8dccbe5d061 (patch) | |
| tree | be4df8bf7e2a31629ea2fc67ceeafdb24651e74c /vtysh/vtysh_main.c | |
| parent | 5f3d15f2c3106848810a3719ea01cbe22e6767f7 (diff) | |
vtysh: remove extra / in config path
before:
frrdev# do wr
Note: this version of vtysh never writes vtysh.conf
Building Configuration...
Integrated configuration saved to /etc/frr//frr.conf
[OK]
frrdev#
after:
frrdev# do wr
Note: this version of vtysh never writes vtysh.conf
Building Configuration...
Integrated configuration saved to /etc/frr/frr.conf
[OK]
frrdev#
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'vtysh/vtysh_main.c')
| -rw-r--r-- | vtysh/vtysh_main.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/vtysh/vtysh_main.c b/vtysh/vtysh_main.c index 003853571f..99c05ef79b 100644 --- a/vtysh/vtysh_main.c +++ b/vtysh/vtysh_main.c @@ -404,9 +404,9 @@ int main(int argc, char **argv, char **env)  			"NOT SUPPORTED since its\nresults are inconsistent!\n");  	} -	snprintf(vtysh_config, sizeof(vtysh_config), "%s%s/%s", sysconfdir, +	snprintf(vtysh_config, sizeof(vtysh_config), "%s%s%s", sysconfdir,  		 pathspace, VTYSH_CONFIG_NAME); -	snprintf(frr_config, sizeof(frr_config), "%s%s/%s", sysconfdir, +	snprintf(frr_config, sizeof(frr_config), "%s%s%s", sysconfdir,  		 pathspace, FRR_CONFIG_NAME);  	strlcat(vtydir, pathspace, sizeof(vtydir));  | 
