The branch main has been updated by kp:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=fb0d388e5d53db18deb6f2646cd797fcf58cd9bb

commit fb0d388e5d53db18deb6f2646cd797fcf58cd9bb
Author:     Kristof Provost <k...@freebsd.org>
AuthorDate: 2025-07-07 06:17:07 +0000
Commit:     Kristof Provost <k...@freebsd.org>
CommitDate: 2025-07-09 08:57:51 +0000

    pfctl: Print the main ruleset/anchor as "/" not "<root>" for consistency
    
    OK sashan
    
    Obtained from:  OpenBSD, kn <k...@openbsd.org>, baa66dbe09
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
---
 sbin/pfctl/pfctl.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c
index 254bd054ae4a..8d2b556d7085 100644
--- a/sbin/pfctl/pfctl.c
+++ b/sbin/pfctl/pfctl.c
@@ -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);

Reply via email to