diff options
| author | Phil Sutter <phil@nwl.cc> | 2025-08-28 16:47:03 +0200 |
|---|---|---|
| committer | Phil Sutter <phil@nwl.cc> | 2025-09-02 12:56:44 +0200 |
| commit | ed1b5b672b2eeb6244bed566227bee2aa7a1e4b4 (patch) | |
| tree | 16d682057847632421f77d66cf8920d7d5e3dbe2 | |
| parent | 441ff666cb22921f23b14146a70c1111210364a2 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, ", "); } |
