summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2005-10-31 16:31:40 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2005-10-31 16:31:40 +0000
commit78d2436cd57031789d731672cb08a6cf95178bba (patch)
tree4abf1e5f701ab1a1aa9bca576a3ad6c1fe33d5e2 /usr.sbin
parent98e9225aff680c76adb672185cfbc54985c53918 (diff)
Print group names in rules in double quotes. Makes the output more parsable.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bgpd/printconf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/printconf.c b/usr.sbin/bgpd/printconf.c
index 576991bc8db..f3a0f87fdc5 100644
--- a/usr.sbin/bgpd/printconf.c
+++ b/usr.sbin/bgpd/printconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: printconf.c,v 1.47 2005/08/09 20:27:25 claudio Exp $ */
+/* $OpenBSD: printconf.c,v 1.48 2005/10/31 16:31:39 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -390,7 +390,7 @@ print_rule(struct peer *peer_l, struct filter_rule *r)
if (p == NULL)
printf("group ? ");
else
- printf("group %s ", p->conf.group);
+ printf("group \"%s\" ", p->conf.group);
} else
printf("any ");