mirror of
https://github.com/opnsense/src.git
synced 2026-06-14 19:20:18 -04:00
pfctl: Print the main ruleset/anchor as "/" not "<root>" for consistency
OK sashan
Obtained from: OpenBSD, kn <kn@openbsd.org>, baa66dbe09
Sponsored by: Rubicon Communications, LLC ("Netgate")
This commit is contained in:
parent
05c33e5acb
commit
fb0d388e5d
1 changed files with 2 additions and 2 deletions
|
|
@ -3077,8 +3077,8 @@ pfctl_recurse(int dev, int opts, char *anchorname,
|
|||
printf("Removing:\n");
|
||||
SLIST_FOREACH_SAFE(pfra, anchors, pfra_sle, pfra_save) {
|
||||
printf(" %s\n",
|
||||
(*pfra->pfra_anchorname == '\0') ? "<root>" :
|
||||
pfra->pfra_anchorname);
|
||||
(*pfra->pfra_anchorname == '\0') ? "/" :
|
||||
pfra->pfra_anchorname);
|
||||
rv |= walkf(dev, opts, pfra);
|
||||
SLIST_REMOVE(anchors, pfra, pfr_anchoritem, pfra_sle);
|
||||
free(pfra->pfra_anchorname);
|
||||
|
|
|
|||
Loading…
Reference in a new issue