From: Phil Sutter Date: Thu, 28 Aug 2025 14:47:03 +0000 (+0200) Subject: monitor: Quote device names in chain declarations, too X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ed1b5b672b2eeb6244bed566227bee2aa7a1e4b4;p=thirdparty%2Fnftables.git monitor: Quote device names in chain declarations, too Fixed commit missed the fact that there are two routines printing chain declarations. Fixes: eb30f236d91a8 ("rule: print chain and flowtable devices in quotes") Signed-off-by: Phil Sutter --- diff --git a/src/rule.c b/src/rule.c index ceb56488..d0a62a3e 100644 --- a/src/rule.c +++ b/src/rule.c @@ -1131,7 +1131,7 @@ void chain_print_plain(const struct chain *chain, struct output_ctx *octx) nft_print(octx, "devices = { "); for (i = 0; i < chain->dev_array_len; i++) { - nft_print(octx, "%s", chain->dev_array[i]); + nft_print(octx, "\"%s\"", chain->dev_array[i]); if (i + 1 != chain->dev_array_len) nft_print(octx, ", "); }