cache: ensure evaluate_cache_list flags are set correctly
PATCH 1/1 cache: ensure evaluate_cache_list flags are set correctly
This change ensures that when listing rulesets with the terse flag that the terse flag is maintained.
Fixes 6bcd0d57 ("cache: unset NFT_CACHE_SETELEM with --terse listing")
Signed-off-by Chris Arges <[email protected]>
--- src/cache.c | 1 + 1 file changed, 1 insertion(+)
src/cache.c +1 -0
@@ -164,6 +164,7 @@ static unsigned int evaluate_cache_list(struct nft_ctx *nft, struct cmd *cmd, flags |= (NFT_CACHE_FULL & ~NFT_CACHE_SETELEM ) |NFT_CACHE_REFRESH ; else flags |= NFT_CACHE_FULL | NFT_CACHE_REFRESH; +break ;default : flags |=NFT_CACHE_FULL |NFT_CACHE_REFRESH ;break ;
Signature · 1 line
2.25.1
Quoted 2 lines · Chris Arges
This change ensures that when listing rulesets with the terse flag that the terse flag is maintained.
Applied