diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-05-14 18:13:03 -0400 |
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-06-06 16:16:10 +0000 |
| commit | 2cddf2fff7394b5a61f9bf3f8fd0b7887b8c5dfa (patch) | |
| tree | 665279f3c080d3210abe9165d84f2e403f9f4503 /lib/command.c | |
| parent | fe6b47b9e90c532ad0c80914f42b1856eebae154 (diff) | |
vtysh: add | support
* Rewrite pager implementation
* Replace fprintf() with vty_out()
* Modify vty_out() for better vtysh support
* Remove static global outputfile var
* Remove fp argument from many vtysh functions
* Add some docs for stuff along the way
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/command.c')
| -rw-r--r-- | lib/command.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/command.c b/lib/command.c index 5b2783d326..c04360f28e 100644 --- a/lib/command.c +++ b/lib/command.c @@ -1202,8 +1202,8 @@ static int handle_pipe_action(struct vty *vty, const char *cmd_in, vty_out(vty, "%% Bad regexp '%s'", regexp); goto fail; } - cmd_out = XSTRDUP(MTYPE_TMP, cmd_in); - *(strstr(cmd_in, "|")) = '\0'; + *cmd_out = XSTRDUP(MTYPE_TMP, cmd_in); + *(strstr(*cmd_out, "|")) = '\0'; } else { vty_out(vty, "%% Unknown action '%s'", token); goto fail; |
