tMake installing untrusted packs scarier - repo - list/download/sync packs with remote repositories
DIR Log
DIR Files
DIR Refs
DIR README
---
DIR commit 9740af45a711fa311b55c34e74ecdbf0fd097eee
DIR parent ebc4a2bd4e1b087652ee804241fd982a2592d82b
HTML Author: z3bra <contactatz3bradotorg>
Date: Mon, 27 Nov 2017 08:48:48 +0100
Make installing untrusted packs scarier
Diffstat:
M parse.y | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
---
DIR diff --git a/parse.y b/parse.y
t@@ -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 {
t@@ -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
%%
t@@ -80,8 +80,8 @@ main : REPO STRING {
| LOCAL STRING {
strncpy(local, $2, PATH_MAX);
}
- | VERIFY NUMBER {
- *verify = !$2;
+ | INSECURE NUMBER {
+ *insecure = $2;
}
;
%%
t@@ -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;
t@@ -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;