summaryrefslogtreecommitdiffabout
path: root/src/bind-gram.y
authorSergey Poznyakoff <gray@gnu.org.ua>2011-05-21 04:38:16 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2011-05-22 17:32:29 (GMT)
commit024cfd63846c0c7ef630a5dab819ad97942264a1 (patch) (side-by-side diff)
treed01c3d40a2008e1831de62957be8e0449d9611c0 /src/bind-gram.y
parentd253fa956809a1497583212109d33fd4f1a05b31 (diff)
downloadgrecs-024cfd63846c0c7ef630a5dab819ad97942264a1.tar.gz
grecs-024cfd63846c0c7ef630a5dab819ad97942264a1.tar.bz2
bind: handle ! prefix in acls.
Diffstat (limited to 'src/bind-gram.y') (more/less context) (ignore whitespace changes)
-rw-r--r--src/bind-gram.y9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/bind-gram.y b/src/bind-gram.y
index fadd3f5..5acc780 100644
--- a/src/bind-gram.y
+++ b/src/bind-gram.y
@@ -108,6 +108,15 @@ simple : BIND_IDENT vallist ';'
$$->ident = $1;
$$->v.value = NULL;
}
+ | '!' string ';'
+ {
+ $$ = grecs_node_create(grecs_node_stmt,
+ &grecs_current_locus);
+ $$->ident = grecs_strdup("!");
+ $$->v.value = grecs_malloc(sizeof($$->v.value[0]));
+ $$->v.value->type = GRECS_TYPE_STRING;
+ $$->v.value->v.string = $2;
+ }
;
block : BIND_IDENT tag '{' stmtlist '}' ';'

Return to:

Send suggestions and report system problems to the System administrator.