mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 16:04:49 +00:00
vtysh: Fix missing tailing / in --config_dir option parsing
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
This commit is contained in:
parent
7e5a886a0b
commit
45d005874e
@ -356,7 +356,7 @@ int main(int argc, char **argv, char **env)
|
|||||||
break;
|
break;
|
||||||
case OPTION_CONFDIR:
|
case OPTION_CONFDIR:
|
||||||
ditch_suid = 1; /* option disables SUID */
|
ditch_suid = 1; /* option disables SUID */
|
||||||
strlcpy(sysconfdir, optarg, sizeof(sysconfdir));
|
snprintf(sysconfdir, sizeof(sysconfdir), "%s/", optarg);
|
||||||
break;
|
break;
|
||||||
case 'N':
|
case 'N':
|
||||||
if (strchr(optarg, '/') || strchr(optarg, '.')) {
|
if (strchr(optarg, '/') || strchr(optarg, '.')) {
|
||||||
|
Loading…
Reference in New Issue
Block a user