diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-01-06 12:28:01 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-01-06 14:09:21 +0100 |
commit | bc2d5f79c2ea00250458685266b59f869d33141b (patch) | |
tree | 4968acb09b85cd73d3a7faf1132ae88eeb4c3b01 /autogen.sh | |
parent | 9420423900a2e4312c570632f7531483dea604a2 (diff) |
cli: use plain readline() interface with libedit
Instead of the alternate interface [1].
I spent a bit of time debugging an issue with libedit support
9420423900a2 ("cli: add libedit support") that broke tests/shell.
This is the reproducer:
# nft -i << EOF
list ruleset
EOF
which makes rl_callback_read_char() loop forever on read() as shown by
strace. The rl_line_buffer variable does not accumulate the typed
characters as it should when redirecting the standard input for some
reason.
Given our interactive interface is fairly simple at this stage, switch
to use the readline() interface instead of rl_callback_read_char().
[1] https://docs.freebsd.org/info/readline/readline.info.Alternate_Interface.html
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'autogen.sh')
0 files changed, 0 insertions, 0 deletions