git: fb0d388e5d53 - main - pfctl: Print the main ruleset/anchor as "/" not "<root>" for consistency

From: Kristof Provost <kp_at_FreeBSD.org>
Date: Wed, 09 Jul 2025 08:59:14 UTC
The branch main has been updated by kp:

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

commit fb0d388e5d53db18deb6f2646cd797fcf58cd9bb
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2025-07-07 06:17:07 +0000
Commit:     Kristof Provost <kp@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 <kn@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);