mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-17 21:38:11 +00:00
vtysh: fix pathspace
It didn't work Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
parent
51ce5c716c
commit
bd29d4638b
@ -179,7 +179,7 @@ struct option longopts[] = {
|
|||||||
{"noerror", no_argument, NULL, 'n'},
|
{"noerror", no_argument, NULL, 'n'},
|
||||||
{"mark", no_argument, NULL, 'm'},
|
{"mark", no_argument, NULL, 'm'},
|
||||||
{"writeconfig", no_argument, NULL, 'w'},
|
{"writeconfig", no_argument, NULL, 'w'},
|
||||||
{"pathspace", no_argument, NULL, 'N'},
|
{"pathspace", required_argument, NULL, 'N'},
|
||||||
{0}};
|
{0}};
|
||||||
|
|
||||||
/* Read a string, and return a pointer to it. Returns NULL on EOF. */
|
/* Read a string, and return a pointer to it. Returns NULL on EOF. */
|
||||||
@ -318,7 +318,7 @@ int main(int argc, char **argv, char **env)
|
|||||||
|
|
||||||
/* Option handling. */
|
/* Option handling. */
|
||||||
while (1) {
|
while (1) {
|
||||||
opt = getopt_long(argc, argv, "be:c:d:nf:mEhCw", longopts, 0);
|
opt = getopt_long(argc, argv, "be:c:d:nf:mEhCwN:", longopts, 0);
|
||||||
|
|
||||||
if (opt == EOF)
|
if (opt == EOF)
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user