diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2001-10-01 17:58:17 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2001-10-01 17:58:17 +0000 |
commit | da5e7340c9b11fb3108b668aaa71f5cddd398c22 (patch) | |
tree | bdbbceb07f82bfa426e167be6042ba5c8dbc5778 /sbin/pfctl/parse.y | |
parent | 698fd6da3e24caa7703b972ab4188af95154df49 (diff) |
print variable asignments only if -v is given. ok dhartmei/deraadt
Diffstat (limited to 'sbin/pfctl/parse.y')
-rw-r--r-- | sbin/pfctl/parse.y | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y index 28b48afba6f..b9a3e449737 100644 --- a/sbin/pfctl/parse.y +++ b/sbin/pfctl/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.37 2001/09/28 14:12:15 dhartmei Exp $ */ +/* $OpenBSD: parse.y,v 1.38 2001/10/01 17:58:16 markus Exp $ */ /* * Copyright (c) 2001 Markus Friedl. All rights reserved. @@ -183,7 +183,8 @@ ruleset : /* empty */ varset : STRING PORTUNARY STRING { - printf("%s = %s\n", $1, $3); + if (pf->opts & PF_OPT_VERBOSE) + printf("%s = %s\n", $1, $3); if (symset($1, $3) == -1) { yyerror("cannot store variable %s", $1); YYERROR; |