repo

List, download and sync packs with remote repositories
Log | Files | Refs | README

commit 9740af45a711fa311b55c34e74ecdbf0fd097eee
parent ebc4a2bd4e1b087652ee804241fd982a2592d82b
Author: z3bra <contactatz3bradotorg>
Date:   Mon Nov 27 08:48:48 +0100

Make installing untrusted packs scarier

Diffstat:
parse.y | 20++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/parse.y b/parse.y @@ -50,7 +50,7 @@ static int findeol(void); static struct repos *repos = NULL; static char *local = NULL; -static int *verify = NULL; +static int *insecure = NULL; typedef struct { union { @@ -61,7 +61,7 @@ typedef struct { } YYSTYPE; %} -%token REPO LOCAL VERIFY ERROR +%token REPO LOCAL INSECURE ERROR %token <v.string> STRING %token <v.number> NUMBER %% @@ -80,8 +80,8 @@ main : REPO STRING { | LOCAL STRING { strncpy(local, $2, PATH_MAX); } - | VERIFY NUMBER { - *verify = !$2; + | INSECURE NUMBER { + *insecure = $2; } ; %% @@ -117,9 +117,9 @@ lookup(char *s) { /* this has to be sorted always */ static const struct keywords keywords[] = { - { "local", LOCAL }, - { "repo", REPO }, - { "verify", VERIFY } + { "local", LOCAL }, + { "repo", REPO }, + { "insecure", INSECURE } }; const struct keywords *p; @@ -390,9 +390,9 @@ parseconf(struct repos *rlist, char *localrepo, int *untrust, const char *filena } topfile = file; - repos = rlist; - local = localrepo; - verify = untrust; + repos = rlist; + local = localrepo; + insecure = untrust; yyparse(); errors = file->errors;