summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2025-08-28 16:47:03 +0200
committerPhil Sutter <phil@nwl.cc>2025-09-02 12:56:44 +0200
commited1b5b672b2eeb6244bed566227bee2aa7a1e4b4 (patch)
tree16d682057847632421f77d66cf8920d7d5e3dbe2
parent441ff666cb22921f23b14146a70c1111210364a2 (diff)
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 <phil@nwl.cc>
-rw-r--r--src/rule.c2
1 files changed, 1 insertions, 1 deletions
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, ", ");
}