-
-
Save mulander/3ab64b79909b5c927a307bc017f14ccc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: parse.y | |
=================================================================== | |
RCS file: /cvs/src/usr.bin/doas/parse.y,v | |
retrieving revision 1.26 | |
diff -u -p -r1.26 parse.y | |
--- parse.y 2 Jan 2017 01:40:20 -0000 1.26 | |
+++ parse.y 8 Jun 2017 16:27:42 -0000 | |
@@ -69,7 +69,7 @@ arraylen(const char **arr) | |
%} | |
-%token TPERMIT TDENY TAS TCMD TARGS | |
+%token TPERMIT TDENY TAS TCMD TCONFIRM TARGS | |
%token TNOPASS TPERSIST TKEEPENV TSETENV | |
%token TSTRING | |
@@ -136,6 +136,10 @@ options: /* none */ { | |
option: TNOPASS { | |
$$.options = NOPASS; | |
$$.envlist = NULL; | |
+ } | TCONFIRM { | |
+ $$.options = CONFIRM; | |
+ $$.envlist = NULL; | |
+ } | |
} | TPERSIST { | |
$$.options = PERSIST; | |
$$.envlist = NULL; | |
@@ -209,6 +213,7 @@ static struct keyword { | |
{ "cmd", TCMD }, | |
{ "args", TARGS }, | |
{ "nopass", TNOPASS }, | |
+ { "confirm", TCONFIRM }, | |
{ "persist", TPERSIST }, | |
{ "keepenv", TKEEPENV }, | |
{ "setenv", TSETENV }, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment