summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2002-12-05 13:07:25 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2002-12-05 13:07:25 +0000
commit4e559de91734833e37a81d6558c00fbc8023b019 (patch)
treeaab30e778d6c28ae3e0ce187ec6523340b31668f
parent637d7b75d1f51b57f3f2dbb4abaf928f9c15411d (diff)
-quote varset in -v output
-don't add 's' in set timeout -v output makes the feedback regression tests succeed. ok markus@ mcbride@
-rw-r--r--sbin/pfctl/parse.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y
index ab841b2be6e..43e923a547b 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.234 2002/12/04 12:57:55 henning Exp $ */
+/* $OpenBSD: parse.y,v 1.235 2002/12/05 13:07:24 henning Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -443,7 +443,7 @@ string : string STRING {
varset : STRING PORTUNARY string {
if (pf->opts & PF_OPT_VERBOSE)
- printf("%s = %s\n", $1, $3);
+ printf("%s = \"%s\"\n", $1, $3);
if (symset($1, $3) == -1) {
yyerror("cannot store variable %s", $1);
YYERROR;
@@ -2213,7 +2213,7 @@ route : /* empty */ {
timeout_spec : STRING number
{
if (pf->opts & PF_OPT_VERBOSE)
- printf("set timeout %s %us\n", $1, $2);
+ printf("set timeout %s %u\n", $1, $2);
if (check_rulestate(PFCTL_STATE_OPTION))
YYERROR;
if (pfctl_set_timeout(pf, $1, $2) != 0) {