From a734373c14dbc894b570a9287f78efcc8a59897d Mon Sep 17 00:00:00 2001 From: Ryan Thomas McBride Date: Fri, 29 Jul 2011 10:51:47 +0000 Subject: Remove requirement to quote 'debug' loglevel for the 'debug' option. ok henning --- sbin/pfctl/parse.y | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sbin') diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y index 11ffd536617..7d75c6b6708 100644 --- a/sbin/pfctl/parse.y +++ b/sbin/pfctl/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.606 2011/07/27 00:26:10 mcbride Exp $ */ +/* $OpenBSD: parse.y,v 1.607 2011/07/29 10:51:46 mcbride Exp $ */ /* * Copyright (c) 2001 Markus Friedl. All rights reserved. @@ -654,6 +654,12 @@ option : SET REASSEMBLE yesno optnodf { } free($3); } + | SET DEBUG DEBUG { + if (pfctl_set_debug(pf, "debug") != 0) { + yyerror("error setting debuglevel debug"); + YYERROR; + } + } | SET SKIP interface { if (expand_skip_interface($3) != 0) { yyerror("error setting skip interface(s)"); -- cgit v1.2.3