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:
Kristof Provost 2025-07-07 08:17:07 +02:00
parent 05c33e5acb
commit fb0d388e5d

View file

@ -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);