NetworkManager/clients/cli
Beniamino Galvani 2e181f9c4d cli: fix failed assertion in readline helper
The INT signal can arrive after a new line has been processed in
nmc_readline_helper(). In such case, the handler gets uninstalled by
readline_cb() and nmc_seen_sigint() returns TRUE. However it's an
error to call rl_callback_read_char() without handler, don't do it.

Fixes the following:
 "readline: readline_callback_read_char() called with no handler!"
 #0 __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
 #1 __GI_abort () at abort.c:90
 #2 rl_callback_read_char () at ../callback.c:116
 #3 nmc_readline_helper (prompt=prompt@entry=0x2aa0d229080 "nmcli> ") at clients/cli/common.c:1387
 #4 nmc_readline (prompt_fmt=prompt_fmt@entry=0x2aa0036ac9e "%s") at clients/cli/common.c:1448
 #5 do_connection_edit (connection=0x2aa0d215440, nmc=0x2aa00391298 <nm_cli>) at clients/cli/connections.c:7072

Fixes: 995229181c

https://bugzilla.redhat.com/show_bug.cgi?id=1458311
(cherry picked from commit cd3a561251)
2017-06-15 10:05:57 +02:00
..
agent.c nmcli: allow cmd specific option parsing in next_arg() func 2017-04-05 16:38:34 +02:00
agent.h cli: add 'nmcli agent' command (bgo #739568) 2014-11-07 11:58:25 +01:00
common.c cli: fix failed assertion in readline helper 2017-06-15 10:05:57 +02:00
common.h cli: support route options 2017-03-06 15:20:25 +01:00
connections.c nmcli: fix access to memeber nmc->show_secret 2017-04-20 14:41:08 +02:00
connections.h cli: add -f argument completion 2016-08-01 15:51:29 +02:00
devices.c cli: remove spurious device names from output 2017-06-11 22:43:50 +02:00
devices.h cli: add -f argument completion 2016-08-01 15:51:29 +02:00
general.c cli: minor refactoring of if-condition in device_overview 2017-06-09 15:37:29 +02:00
general.h cli: output a short summary of devices when called without arguments 2016-07-19 14:29:05 +02:00
nmcli-completion cli: make nmcli do its own command completion 2017-02-13 16:32:15 +01:00
nmcli.c nmcli: allow cmd specific option parsing in next_arg() func 2017-04-05 16:38:34 +02:00
nmcli.h include: use double-quotes to include our own headers 2017-03-09 14:12:35 +01:00
polkit-agent.c all: cleanup includes in header files 2016-08-17 19:51:17 +02:00
polkit-agent.h cli: add 'nmcli agent' command (bgo #739568) 2014-11-07 11:58:25 +01:00
settings-docs.xsl clients: reorganize source tree, put all the installed clients together 2014-07-30 15:56:19 -04:00
settings.c clients: fix appending integer to result in nmc_property_set_bytes() 2017-05-23 16:10:46 +02:00
settings.h cli: support dummy connections 2017-02-22 21:05:04 +01:00
utils.c nmcli: allow cmd specific option parsing in next_arg() func 2017-04-05 16:38:34 +02:00
utils.h nmcli: allow cmd specific option parsing in next_arg() func 2017-04-05 16:38:34 +02:00