Page MenuHomeFreeBSD

D36415.diff
No OneTemporary

D36415.diff

diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c
--- a/sbin/pfctl/pfctl.c
+++ b/sbin/pfctl/pfctl.c
@@ -1123,13 +1123,11 @@
(p == anchor_call ||
*(--p) == '/')) || (opts & PF_OPT_RECURSE))) {
brace++;
- if ((p = strrchr(anchor_call, '/')) !=
- NULL)
- p++;
- else
- p = &anchor_call[0];
- } else
- p = &anchor_call[0];
+ int aclen = strlen(anchor_call);
+ if (anchor_call[aclen - 1] == '*')
+ anchor_call[aclen - 2] = '\0';
+ }
+ p = &anchor_call[0];
if (dotitle) {
pfctl_print_title("ETH RULES:");
dotitle = 0;

File Metadata

Mime Type
text/plain
Expires
Thu, May 1, 1:03 PM (16 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17881739
Default Alt Text
D36415.diff (571 B)

Event Timeline