opendoas

my fork of doas with custom prompt
git clone git://git.kocotian.pl/opendoas.git
Log | Files | Refs | README | LICENSE

commit 75ec7b4adb302d32577a555206147c9865d62374
parent 8150cd43ccf59dcb235036ba1f5ee387cfd42c70
Author: tedu <tedu>
Date:   Thu, 29 Dec 2016 19:12:42 +0000

it has been six months and two days... remove keepenv { obsolete } syntax

Diffstat:
Mparse.y | 8--------
1 file changed, 0 insertions(+), 8 deletions(-)

diff --git a/parse.y b/parse.y @@ -53,7 +53,6 @@ int nrules; static int maxrules; int parse_errors = 0; -static int obsolete_warned = 0; static void yyerror(const char *, ...); static int yylex(void); @@ -145,13 +144,6 @@ option: TNOPASS { } | TKEEPENV { $$.options = KEEPENV; $$.envlist = NULL; - } | TKEEPENV '{' envlist '}' { - $$.options = 0; - if (!obsolete_warned) { - warnx("keepenv with list is obsolete"); - obsolete_warned = 1; - } - $$.envlist = $3.envlist; } | TSETENV '{' envlist '}' { $$.options = 0; $$.envlist = $3.envlist;