diff options
author | Jared Yanovich <jaredy@cvs.openbsd.org> | 2004-09-27 12:51:13 +0000 |
---|---|---|
committer | Jared Yanovich <jaredy@cvs.openbsd.org> | 2004-09-27 12:51:13 +0000 |
commit | 921baeb3f36727bcd780d271cb864139db448975 (patch) | |
tree | dcc9fa58e9fd9b6863536fa20edd71c877a0bca4 /sbin/pfctl | |
parent | f4f2b78efae56fd688ba9380e77d6ed995f2531f (diff) |
anchor rules referencing anchors using slashes may need quotes.
ok mcbride henning
Diffstat (limited to 'sbin/pfctl')
-rw-r--r-- | sbin/pfctl/pfctl_parser.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/pfctl/pfctl_parser.c b/sbin/pfctl/pfctl_parser.c index 79c85406c2d..c38c8c0ed5a 100644 --- a/sbin/pfctl/pfctl_parser.c +++ b/sbin/pfctl/pfctl_parser.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl_parser.c,v 1.204 2004/09/21 16:59:11 aaron Exp $ */ +/* $OpenBSD: pfctl_parser.c,v 1.205 2004/09/27 12:51:12 jaredy Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -640,7 +640,8 @@ print_rule(struct pf_rule *r, const char *anchor_call, int verbose) if (r->action > PF_NORDR) printf("action(%d)", r->action); else if (anchor_call[0]) - printf("%s %s", anchortypes[r->action], anchor_call); + printf("%s \"%s\"", anchortypes[r->action], + anchor_call); else { printf("%s", actiontypes[r->action]); if (r->natpass) |