~mdw
/
become
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Insert some missing semicolons. Bison didn't seem to care, but other
[become]
/
src
/
parser.y
diff --git
a/src/parser.y
b/src/parser.y
index
d731389
..
495dc4a
100644
(file)
--- a/
src/parser.y
+++ b/
src/parser.y
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-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
*
*
* Parser for `become.conf' files
*
@@
-29,6
+29,10
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: parser.y,v $
/*----- 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
* 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
}
yynerrs++; YYERROR;
#endif
}
+ ;
/* --- Parsing allow specifications --- */
/* --- 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);
}
user_class_opt command_class_opt ';' {
rule_add($2, $3, $5, $6);
}
+ ;
host_class_opt : /* empty */ { $$ = class_all; }
| '[' host_class ']' { $$ = $2; }
host_class_opt : /* empty */ { $$ = class_all; }
| '[' host_class ']' { $$ = $2; }
@@
-271,6
+277,7
@@
name : WORD {
n->c = 0;
$$ = n;
}
n->c = 0;
$$ = n;
}
+ ;
/*----- Various class expression types ------------------------------------*
*
/*----- Various class expression types ------------------------------------*
*