X-Git-Url: https://git.distorted.org.uk/~mdw/become/blobdiff_plain/59f147b0d9bfb46577cd6f8813589ccdf8bc2a2c..9285878d22664ad4267c36deabee66a4f96ce529:/src/parser.y diff --git a/src/parser.y b/src/parser.y index d731389..495dc4a 100644 --- a/src/parser.y +++ b/src/parser.y @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: parser.y,v 1.6 1998/04/23 13:26:49 mdw Exp $ + * $Id: parser.y,v 1.7 1999/03/26 15:25:22 mdw Exp $ * * Parser for `become.conf' files * @@ -29,6 +29,10 @@ /*----- Revision history --------------------------------------------------* * * $Log: parser.y,v $ + * Revision 1.7 1999/03/26 15:25:22 mdw + * Insert some missing semicolons. Bison didn't seem to care, but other + * programs like `yyextract' do, so it's worth fixing. + * * Revision 1.6 1998/04/23 13:26:49 mdw * New `parse' interface to configuration file parser; informs caller * whether parsing encountered any errors. Also support no-network @@ -242,6 +246,7 @@ key_spec : KEYFILE STRING ';' { yynerrs++; YYERROR; #endif } + ; /* --- Parsing allow specifications --- */ @@ -249,6 +254,7 @@ allow_spec : ALLOW host_class_opt user_class ARROW user_class_opt command_class_opt ';' { rule_add($2, $3, $5, $6); } + ; host_class_opt : /* empty */ { $$ = class_all; } | '[' host_class ']' { $$ = $2; } @@ -271,6 +277,7 @@ name : WORD { n->c = 0; $$ = n; } + ; /*----- Various class expression types ------------------------------------* *