Commit a7d5a95
committed
netfilter: nf_tables: bogus ENOENT when destroying element which does not exist
destroy element command bogusly reports ENOENT in case a set element
does not exist. ENOENT errors are skipped, however, err is still set
and propagated to userspace.
# nft destroy element ip raw BLACKLIST { 1.2.3.4 }
Error: Could not process rule: No such file or directory
destroy element ip raw BLACKLIST { 1.2.3.4 }
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Fixes: f80a612 ("netfilter: nf_tables: add support to destroy operation")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>1 parent c301f09 commit a7d5a95
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7263 | 7263 | | |
7264 | 7264 | | |
7265 | 7265 | | |
7266 | | - | |
| 7266 | + | |
7267 | 7267 | | |
7268 | 7268 | | |
7269 | | - | |
| 7269 | + | |
| 7270 | + | |
7270 | 7271 | | |
7271 | 7272 | | |
7272 | 7273 | | |
| |||
0 commit comments