mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 02:53:55 +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;
|
||||
case OPTION_CONFDIR:
|
||||
ditch_suid = 1; /* option disables SUID */
|
||||
strlcpy(sysconfdir, optarg, sizeof(sysconfdir));
|
||||
snprintf(sysconfdir, sizeof(sysconfdir), "%s/", optarg);
|
||||
break;
|
||||
case 'N':
|
||||
if (strchr(optarg, '/') || strchr(optarg, '.')) {
|
||||
|
Loading…
Reference in New Issue
Block a user