opendoas

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

commit 7413704e222d69771ba3c70356695d0f15857f66
parent 998d49046c5da55449ace95a7bb0ba4522a8c029
Author: tedu <tedu>
Date:   Thu,  6 Apr 2017 21:12:06 +0000

prepenv can take a const rule

Diffstat:
Mdoas.h | 2+-
Menv.c | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/doas.h b/doas.h @@ -29,7 +29,7 @@ extern struct rule **rules; extern int nrules; extern int parse_errors; -char **prepenv(struct rule *); +char **prepenv(const struct rule *); #define PERMIT 1 #define DENY 2 diff --git a/env.c b/env.c @@ -70,7 +70,7 @@ freenode(struct envnode *node) } static struct env * -createenv(struct rule *rule) +createenv(const struct rule *rule) { struct env *env; u_int i; @@ -187,7 +187,7 @@ fillenv(struct env *env, const char **envlist) } char ** -prepenv(struct rule *rule) +prepenv(const struct rule *rule) { static const char *safeset[] = { "DISPLAY", "HOME", "LOGNAME", "MAIL",