Page MenuHomeFreeBSD

D53360.id165069.diff
No OneTemporary

D53360.id165069.diff

diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c
--- a/sbin/pfctl/pfctl.c
+++ b/sbin/pfctl/pfctl.c
@@ -3168,10 +3168,7 @@
int ret;
if ((ret = pfctl_get_eth_rulesets_info(dev, &ri, anchorname)) != 0) {
- if (ret == ENOENT)
- fprintf(stderr, "Anchor '%s' not found.\n",
- anchorname);
- else
+ if (ret != ENOENT)
errc(1, ret, "DIOCGETETHRULESETS");
return (-1);
}
diff --git a/tests/sys/netpfil/pf/anchor.sh b/tests/sys/netpfil/pf/anchor.sh
--- a/tests/sys/netpfil/pf/anchor.sh
+++ b/tests/sys/netpfil/pf/anchor.sh
@@ -148,10 +148,10 @@
}"
atf_check -s exit:0 -o inline:" foo\n foo/bar\n foo/baz\n" \
- -e ignore jexec alcatraz pfctl -sA
+ jexec alcatraz pfctl -sA
atf_check -s exit:0 -o inline:" foo/bar\n foo/baz\n" \
- -e ignore jexec alcatraz pfctl -a foo -sA
+ jexec alcatraz pfctl -a foo -sA
}
multiple_nested_cleanup()

File Metadata

Mime Type
text/plain
Expires
Mon, Jun 22, 9:59 PM (5 h, 54 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34215029
Default Alt Text
D53360.id165069.diff (891 B)

Event Timeline