From fb0d388e5d53db18deb6f2646cd797fcf58cd9bb Mon Sep 17 00:00:00 2001 From: Kristof Provost Date: Mon, 7 Jul 2025 08:17:07 +0200 Subject: [PATCH] pfctl: Print the main ruleset/anchor as "/" not "" for consistency OK sashan Obtained from: OpenBSD, kn , 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 254bd054ae4..8d2b556d708 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') ? "" : - 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);