From: Nicolai Dagestad Date: Sun, 6 Jun 2021 16:28:35 +0000 (+0200) Subject: rfkill: Set scols table name to make the json output valid X-Git-Tag: v2.38-rc1~477 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=63e523a151b1cdb135bee9edd402de6d294922f9;p=thirdparty%2Futil-linux.git 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 Signed-off-by: Karel Zak --- diff --git a/sys-utils/rfkill.c b/sys-utils/rfkill.c index 0e740e122d..da9b07ec49 100644 --- a/sys-utils/rfkill.c +++ b/sys-utils/rfkill.c @@ -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);