rfkill: Set scols table name to make the json output valid

[kzak@redhat.com: - s/rfkill/rfkilldevices/]

Fixes: https://github.com/karelzak/util-linux/issues/1339
Signed-off-by: Nicolai Dagestad <nicolai@dagestad.fr>
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Nicolai Dagestad 2021-06-06 18:28:35 +02:00 committed by Karel Zak
parent 0d281926a3
commit 63e523a151
1 changed files with 1 additions and 0 deletions

View File

@ -465,6 +465,7 @@ static void rfkill_list_init(struct control *ctrl)
err(EXIT_FAILURE, _("failed to allocate output table"));
scols_table_enable_json(ctrl->tb, ctrl->json);
scols_table_set_name(ctrl->tb, "rfkilldevices");
scols_table_enable_noheadings(ctrl->tb, ctrl->no_headings);
scols_table_enable_raw(ctrl->tb, ctrl->raw);