summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkn <kn@cvs.openbsd.org>2020-01-15 13:42:40 +0000
committerkn <kn@cvs.openbsd.org>2020-01-15 13:42:40 +0000
commitce53b54dc551616013b28456bd04de3211968339 (patch)
treedd069e566be8999ef1e4e7eb17160c55a5fecede
parentca2ca47fd4c9e00ef7a438091e4d39a61788c6e7 (diff)
Print the main ruleset/anchor as "/" not "<root>" for consistency
OK sashan
-rw-r--r--sbin/pfctl/pfctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c
index 2dfc35e3830..23e3bfbef6c 100644
--- a/sbin/pfctl/pfctl.c
+++ b/sbin/pfctl/pfctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl.c,v 1.378 2020/01/15 11:52:50 sashan Exp $ */
+/* $OpenBSD: pfctl.c,v 1.379 2020/01/15 13:42:39 kn Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -2327,7 +2327,7 @@ pfctl_recurse(int dev, int opts, const 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);
rv |= walkf(dev, opts, pfra);
SLIST_REMOVE(anchors, pfra, pfr_anchoritem, pfra_sle);
free(pfra->pfra_anchorname);