summaryrefslogtreecommitdiffstats
path: root/autogen.sh
diff options
context:
space:
mode:
authorGuruswamy Basavaiah <guru2018@gmail.com>2014-06-08 00:44:16 +0530
committerPablo Neira Ayuso <pablo@netfilter.org>2014-06-10 17:23:17 +0200
commit2874f6f52393495de8b31b6e5222441056fba9eb (patch)
treef199cb2e5118c611643bdc0abf72988fa54dcedd /autogen.sh
parentc661d1f8726c9aa6968ec3a66351b18437918f21 (diff)
cli: fix nft -i command crashes when try to input multi line command
When try to input multiline command in "nft -i", it crashes. Issue is, function cli_append_multiline() return null in case of multiline command. But in the calling function cli_complete(), cli_exit is getting called, which in turn calls rl_callback_handler_remove() and the handler is getting removed. [root@localhost ~]# nft -i nft> add table filter nft> list table \ readline: readline_callback_read_char() called with no handler! Aborted (core dumped) [root@localhost ~]# After this patch, it shows: nft> list table \ .... filter table ip filter { } nft> The ".... " prompt is used to indicate a multiline command, similar to what Python does. Signed-off-by: Guruswamy Basavaiah <guru2018@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'autogen.sh')
0 files changed, 0 insertions, 0 deletions